|
|
@ -58,6 +58,8 @@ const logout_request_handler = function(state, dispatch, e){
|
|
|
|
api.post('/logout', {});
|
|
|
|
api.post('/logout', {});
|
|
|
|
// we dispatch after the API call because the logout action clears the session_id, which is needed to logout
|
|
|
|
// we dispatch after the API call because the logout action clears the session_id, which is needed to logout
|
|
|
|
dispatch('logout-requested');
|
|
|
|
dispatch('logout-requested');
|
|
|
|
|
|
|
|
// after logout, clear the bin:
|
|
|
|
|
|
|
|
new_bin_handler(state, dispatch);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const bin_name_editing_toggle_button_handler = function(state, dispatch){
|
|
|
|
const bin_name_editing_toggle_button_handler = function(state, dispatch){
|
|
|
|
dispatch('update-bin-name-editing', !state.is_editing_bin_name);
|
|
|
|
dispatch('update-bin-name-editing', !state.is_editing_bin_name);
|
|
|
|