[IMP] web: logout client action: prevent toggling app switcher

When the webclient calls do_action from the app_switcher, it toggles it when
the returned deferred is resolved.

The logout client action didn't return anything, so when logging out from the
app switcher, the webclient directly toggled the app_switcher and displayed
the last opened action if any, and a gray screen otherwise.

This commit makes the client action return a deferred which is never resolved,
so the app_switcher isn't toggled when logging out.
This commit is contained in:
Aaron Bohy
2016-07-20 16:06:32 +02:00
parent 7b439be276
commit 1da9f1dc10
@@ -155,6 +155,7 @@ core.action_registry.add("login", login);
function logout() {
redirect('/web/session/logout');
return $.Deferred();
}
core.action_registry.add("logout", logout);