logout clears loads new blank bin

This commit is contained in:
Brian Sakal
2021-04-08 14:18:20 -04:00
parent c7195b4209
commit f3e4dab88a
+2
View File
@@ -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);