mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-15 10:42:23 +00:00
fix #10756: do not show push notification settings for email only notifications
This commit is contained in:
parent
1f44444a50
commit
ffba435923
1 changed files with 9 additions and 3 deletions
|
|
@ -32,7 +32,7 @@
|
|||
td
|
||||
input(type='checkbox', v-model='user.preferences.emailNotifications[notification]',
|
||||
@change='set("emailNotifications", notification)')
|
||||
td
|
||||
td(v-if="onlyEmailsIds.indexOf(notification) === -1")
|
||||
input(type='checkbox', v-model='user.preferences.pushNotifications[notification]',
|
||||
@change='set("pushNotifications", notification)')
|
||||
hr
|
||||
|
|
@ -46,7 +46,7 @@ export default {
|
|||
mixins: [notificationsMixin],
|
||||
data () {
|
||||
return {
|
||||
notificationsIds: [
|
||||
notificationsIds: Object.freeze([
|
||||
'newPM',
|
||||
'wonChallenge',
|
||||
'giftedGems',
|
||||
|
|
@ -59,7 +59,13 @@ export default {
|
|||
'importantAnnouncements',
|
||||
'weeklyRecaps',
|
||||
'onboarding',
|
||||
],
|
||||
]),
|
||||
// list of email-only notifications
|
||||
onlyEmailsIds: Object.freeze([
|
||||
'importantAnnouncements',
|
||||
'weeklyRecaps',
|
||||
'onboarding',
|
||||
]),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue