Add settings for filtering end-of-poll notifications
Ref: poll-notif
This commit is contained in:
parent
a4b6a97b1b
commit
a35daceb5b
4 changed files with 17 additions and 2 deletions
|
@ -61,6 +61,15 @@
|
||||||
:class="{ 'menu-checkbox-checked': filters.moves }"
|
:class="{ 'menu-checkbox-checked': filters.moves }"
|
||||||
/>{{ $t('settings.notification_visibility_moves') }}
|
/>{{ $t('settings.notification_visibility_moves') }}
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
class="button-default dropdown-item"
|
||||||
|
@click="toggleNotificationFilter('polls')"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="menu-checkbox"
|
||||||
|
:class="{ 'menu-checkbox-checked': filters.polls }"
|
||||||
|
/>{{ $t('settings.notification_visibility_polls') }}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:trigger>
|
<template v-slot:trigger>
|
||||||
|
|
|
@ -41,6 +41,11 @@
|
||||||
{{ $t('settings.notification_visibility_emoji_reactions') }}
|
{{ $t('settings.notification_visibility_emoji_reactions') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.polls">
|
||||||
|
{{ $t('settings.notification_visibility_polls') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -54,7 +54,8 @@ export const defaultState = {
|
||||||
moves: true,
|
moves: true,
|
||||||
emojiReactions: true,
|
emojiReactions: true,
|
||||||
followRequest: true,
|
followRequest: true,
|
||||||
chatMention: true
|
chatMention: true,
|
||||||
|
polls: true
|
||||||
},
|
},
|
||||||
webPushNotifications: false,
|
webPushNotifications: false,
|
||||||
muteWords: [],
|
muteWords: [],
|
||||||
|
|
|
@ -15,7 +15,7 @@ export const visibleTypes = store => {
|
||||||
rootState.config.notificationVisibility.followRequest && 'follow_request',
|
rootState.config.notificationVisibility.followRequest && 'follow_request',
|
||||||
rootState.config.notificationVisibility.moves && 'move',
|
rootState.config.notificationVisibility.moves && 'move',
|
||||||
rootState.config.notificationVisibility.emojiReactions && 'pleroma:emoji_reaction',
|
rootState.config.notificationVisibility.emojiReactions && 'pleroma:emoji_reaction',
|
||||||
'poll'
|
rootState.config.notificationVisibility.polls && 'poll'
|
||||||
].filter(_ => _))
|
].filter(_ => _))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue