notifications_tab.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <div :label="$t('settings.notifications')">
  3. <div class="setting-item">
  4. <h2>{{ $t('settings.notification_setting_filters') }}</h2>
  5. <ul class="setting-list">
  6. <li>
  7. <BooleanSetting path="serverSide_blockNotificationsFromStrangers">
  8. {{ $t('settings.notification_setting_block_from_strangers') }}
  9. </BooleanSetting>
  10. </li>
  11. <li class="select-multiple">
  12. <span class="label">{{ $t('settings.notification_visibility') }}</span>
  13. <ul class="option-list">
  14. <li>
  15. <BooleanSetting path="notificationVisibility.likes">
  16. {{ $t('settings.notification_visibility_likes') }}
  17. </BooleanSetting>
  18. </li>
  19. <li>
  20. <BooleanSetting path="notificationVisibility.repeats">
  21. {{ $t('settings.notification_visibility_repeats') }}
  22. </BooleanSetting>
  23. </li>
  24. <li>
  25. <BooleanSetting path="notificationVisibility.follows">
  26. {{ $t('settings.notification_visibility_follows') }}
  27. </BooleanSetting>
  28. </li>
  29. <li>
  30. <BooleanSetting path="notificationVisibility.mentions">
  31. {{ $t('settings.notification_visibility_mentions') }}
  32. </BooleanSetting>
  33. </li>
  34. <li>
  35. <BooleanSetting path="notificationVisibility.moves">
  36. {{ $t('settings.notification_visibility_moves') }}
  37. </BooleanSetting>
  38. </li>
  39. <li>
  40. <BooleanSetting path="notificationVisibility.emojiReactions">
  41. {{ $t('settings.notification_visibility_emoji_reactions') }}
  42. </BooleanSetting>
  43. </li>
  44. <li>
  45. <BooleanSetting path="notificationVisibility.polls">
  46. {{ $t('settings.notification_visibility_polls') }}
  47. </BooleanSetting>
  48. </li>
  49. </ul>
  50. </li>
  51. </ul>
  52. </div>
  53. <div
  54. v-if="expertLevel > 0"
  55. class="setting-item"
  56. >
  57. <h2>{{ $t('settings.notification_setting_privacy') }}</h2>
  58. <ul class="setting-list">
  59. <li>
  60. <BooleanSetting
  61. path="webPushNotifications"
  62. expert="1"
  63. >
  64. {{ $t('settings.enable_web_push_notifications') }}
  65. </BooleanSetting>
  66. </li>
  67. <li>
  68. <BooleanSetting
  69. path="serverSide_webPushHideContents"
  70. expert="1"
  71. >
  72. {{ $t('settings.notification_setting_hide_notification_contents') }}
  73. </BooleanSetting>
  74. </li>
  75. </ul>
  76. </div>
  77. <div class="setting-item">
  78. <p>{{ $t('settings.notification_mutes') }}</p>
  79. <p>{{ $t('settings.notification_blocks') }}</p>
  80. </div>
  81. </div>
  82. </template>
  83. <script src="./notifications_tab.js"></script>
  84. <!-- <style lang="scss" src="./profile.scss"></style> -->