rearrange notification visibility page a bit.
This commit is contained in:
parent
e3ee3eacca
commit
fd3ad106be
@ -3,6 +3,10 @@
|
|||||||
.settings-modal {
|
.settings-modal {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.setting-list,
|
.setting-list,
|
||||||
.option-list {
|
.option-list {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
@ -15,6 +19,14 @@
|
|||||||
.suboptions {
|
.suboptions {
|
||||||
margin-top: 0.3em;
|
margin-top: 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.two-column {
|
||||||
|
column-count: 2;
|
||||||
|
|
||||||
|
> li {
|
||||||
|
break-inside: avoid;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.setting-description {
|
.setting-description {
|
||||||
|
@ -16,6 +16,10 @@ const NotificationsTab = {
|
|||||||
user () {
|
user () {
|
||||||
return this.$store.state.users.currentUser
|
return this.$store.state.users.currentUser
|
||||||
},
|
},
|
||||||
|
canReceiveReports () {
|
||||||
|
if (!this.user) { return false }
|
||||||
|
return this.user.privileges.includes('reports_manage_reports')
|
||||||
|
},
|
||||||
...SharedComputedObject()
|
...SharedComputedObject()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -34,43 +34,128 @@
|
|||||||
{{ $t('settings.notification_setting_block_from_strangers') }}
|
{{ $t('settings.notification_setting_block_from_strangers') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li class="select-multiple">
|
<li>
|
||||||
<span class="label">{{ $t('settings.notification_visibility') }}</span>
|
<h3> {{ $t('settings.notification_visibility') }}</h3>
|
||||||
<ul class="option-list">
|
<ul class="setting-list two-column">
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.likes">
|
<h4> {{ $t('settings.notification_visibility_mentions') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_likes') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.mentions">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.mentions" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.repeats">
|
<h4> {{ $t('settings.notification_visibility_likes') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_repeats') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.likes">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.likes" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.follows">
|
<h4> {{ $t('settings.notification_visibility_repeats') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_follows') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.repeats">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.repeats" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.mentions">
|
<h4> {{ $t('settings.notification_visibility_emoji_reactions') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_mentions') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.emojiReactions">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.emojiReactions" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.moves">
|
<h4> {{ $t('settings.notification_visibility_follows') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_moves') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.follows">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.follows" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.emojiReactions">
|
<h4> {{ $t('settings.notification_visibility_moves') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_emoji_reactions') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.moves">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.moves" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting path="notificationVisibility.polls">
|
<h4> {{ $t('settings.notification_visibility_polls') }}</h4>
|
||||||
{{ $t('settings.notification_visibility_polls') }}
|
<ul class="setting-list">
|
||||||
</BooleanSetting>
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.polls">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.polls" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li v-if="canReceiveReports">
|
||||||
|
<h4> {{ $t('settings.notification_visibility_reports') }}</h4>
|
||||||
|
<ul class="setting-list">
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationVisibility.reports">
|
||||||
|
{{ $t('settings.notification_visibility_in_column') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="notificationNative.reports" >
|
||||||
|
{{ $t('settings.notification_visibility_native_notifications') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
@ -561,10 +561,13 @@
|
|||||||
"posts": "Posts",
|
"posts": "Posts",
|
||||||
"user_profiles": "User Profiles",
|
"user_profiles": "User Profiles",
|
||||||
"notification_visibility": "Types of notifications to show",
|
"notification_visibility": "Types of notifications to show",
|
||||||
|
"notification_visibility_in_column": "Show in notifications column/drawer",
|
||||||
|
"notification_visibility_native_notifications": "Show a native notification",
|
||||||
"notification_visibility_follows": "Follows",
|
"notification_visibility_follows": "Follows",
|
||||||
"notification_visibility_likes": "Favorites",
|
"notification_visibility_likes": "Favorites",
|
||||||
"notification_visibility_mentions": "Mentions",
|
"notification_visibility_mentions": "Mentions",
|
||||||
"notification_visibility_repeats": "Repeats",
|
"notification_visibility_repeats": "Repeats",
|
||||||
|
"notification_visibility_reports": "Reports",
|
||||||
"notification_visibility_moves": "User Migrates",
|
"notification_visibility_moves": "User Migrates",
|
||||||
"notification_visibility_emoji_reactions": "Reactions",
|
"notification_visibility_emoji_reactions": "Reactions",
|
||||||
"notification_visibility_polls": "Ends of polls you voted in",
|
"notification_visibility_polls": "Ends of polls you voted in",
|
||||||
|
@ -66,8 +66,17 @@ export const defaultState = {
|
|||||||
chatMention: true,
|
chatMention: true,
|
||||||
polls: true
|
polls: true
|
||||||
},
|
},
|
||||||
notificationSettings: {
|
notificationNative: {
|
||||||
nativeNotifications: ['follows', 'mentions', 'followRequest', 'reports', 'chatMention', 'polls']
|
follows: true,
|
||||||
|
mentions: true,
|
||||||
|
likes: false,
|
||||||
|
repeats: false,
|
||||||
|
moves: false,
|
||||||
|
emojiReactions: false,
|
||||||
|
followRequest: true,
|
||||||
|
reports: true,
|
||||||
|
chatMention: true,
|
||||||
|
polls: true
|
||||||
},
|
},
|
||||||
webPushNotifications: false,
|
webPushNotifications: false,
|
||||||
muteWords: [],
|
muteWords: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user