Replace isNotified state with getter
This commit is contained in:
parent
cbaf4db339
commit
d5ebdc943c
@ -24,7 +24,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
viewportClasses() {
|
viewportClasses() {
|
||||||
return {
|
return {
|
||||||
notified: this.$store.state.isNotified,
|
notified: this.$store.getters.highlightCount > 0,
|
||||||
"menu-open": this.$store.state.sidebarOpen,
|
"menu-open": this.$store.state.sidebarOpen,
|
||||||
"menu-dragging": this.$store.state.sidebarDragging,
|
"menu-dragging": this.$store.state.sidebarDragging,
|
||||||
"userlist-open": this.$store.state.userlistOpen,
|
"userlist-open": this.$store.state.userlistOpen,
|
||||||
|
@ -26,7 +26,6 @@ const store = new Vuex.Store({
|
|||||||
isAutoCompleting: false,
|
isAutoCompleting: false,
|
||||||
isConnected: false,
|
isConnected: false,
|
||||||
isFileUploadEnabled: false,
|
isFileUploadEnabled: false,
|
||||||
isNotified: false,
|
|
||||||
activeWindow: null,
|
activeWindow: null,
|
||||||
networks: [],
|
networks: [],
|
||||||
pushNotificationState: "unsupported",
|
pushNotificationState: "unsupported",
|
||||||
@ -61,9 +60,6 @@ const store = new Vuex.Store({
|
|||||||
isFileUploadEnabled(state, isFileUploadEnabled) {
|
isFileUploadEnabled(state, isFileUploadEnabled) {
|
||||||
state.isFileUploadEnabled = isFileUploadEnabled;
|
state.isFileUploadEnabled = isFileUploadEnabled;
|
||||||
},
|
},
|
||||||
isNotified(state, payload) {
|
|
||||||
state.isNotified = payload;
|
|
||||||
},
|
|
||||||
activeWindow(state, payload) {
|
activeWindow(state, payload) {
|
||||||
state.activeWindow = payload;
|
state.activeWindow = payload;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user