Skip to content

Commit

Permalink
chore: clearing output when you log out
Browse files Browse the repository at this point in the history
  • Loading branch information
Hextar committed May 20, 2021
1 parent eddf406 commit bd5a59c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/the/NavigationDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ import {
SET_TABLE_LIST,
DEFAULT_DB,
} from '@/store/database/constants';
import {
OUTPUT_MODULE,
RESET_OUTPUT,
} from '@/store/output/constants';
import {
IMMUDB_MODULE,
SET_STATE,
Expand Down Expand Up @@ -376,6 +380,9 @@ export default {
...mapActions(IMMUDB_MODULE, {
setState: SET_STATE,
}),
...mapActions(OUTPUT_MODULE, {
resetOutput: RESET_OUTPUT,
}),
onMini () {
this.setSidebar({ mini: !this.mini });
},
Expand All @@ -391,6 +398,7 @@ export default {
this.setState({ tables: [] });
this.setActiveDatabase({ active: DEFAULT_DB });
this.setTableList({ tables: [] });
this.resetOutput();
},
},
};
Expand Down

0 comments on commit bd5a59c

Please sign in to comment.