use data() for constants instead of a computed property

Signed-off-by: chandi Langecker <git@chandi.it>
This commit is contained in:
chandi Langecker
2022-09-05 11:54:30 +02:00
parent 38aed97d69
commit 567b9cc66e

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) {