logout clears loads new blank bin

stable
Brian Sakal 4 years ago
parent c7195b4209
commit f3e4dab88a

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

Loading…
Cancel
Save