Replace isNotified state with getter

This commit is contained in:
Tim Miller-Williams 2019-11-08 00:04:25 +00:00 committed by Pavel Djundik
parent cbaf4db339
commit d5ebdc943c
2 changed files with 1 additions and 5 deletions

View File

@ -24,7 +24,7 @@ export default {
computed: {
viewportClasses() {
return {
notified: this.$store.state.isNotified,
notified: this.$store.getters.highlightCount > 0,
"menu-open": this.$store.state.sidebarOpen,
"menu-dragging": this.$store.state.sidebarDragging,
"userlist-open": this.$store.state.userlistOpen,

View File

@ -26,7 +26,6 @@ const store = new Vuex.Store({
isAutoCompleting: false,
isConnected: false,
isFileUploadEnabled: false,
isNotified: false,
activeWindow: null,
networks: [],
pushNotificationState: "unsupported",
@ -61,9 +60,6 @@ const store = new Vuex.Store({
isFileUploadEnabled(state, isFileUploadEnabled) {
state.isFileUploadEnabled = isFileUploadEnabled;
},
isNotified(state, payload) {
state.isNotified = payload;
},
activeWindow(state, payload) {
state.activeWindow = payload;
},