use data() for constants instead of a computed property

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2023-01-03 12:43:59 +01:00
parent 38aed97d69
commit 567b9cc66e
+1 -3
View File
@@ -268,6 +268,7 @@ export default {
filter: { tags: [], users: [], due: '', unassigned: false },
showAddCardModal: false,
defaultPageTitle: false,
isNotifyPushEnabled: isNotifyPushEnabled(),
}
},
@@ -291,9 +292,6 @@ export default {
labelsSorted() {
return [...this.board.labels].sort((a, b) => (a.title < b.title) ? -1 : 1)
},
isNotifyPushEnabled() {
return isNotifyPushEnabled()
},
},
watch: {
board(current, previous) {