logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

notifications_tab.vue (11015B)


  1. <template>
  2. <div :label="$t('settings.notifications')">
  3. <div class="setting-item">
  4. <h2>{{ $t('settings.notification_setting_annoyance') }}</h2>
  5. <ul class="setting-list">
  6. <li>
  7. <BooleanSetting path="closingDrawerMarksAsSeen">
  8. {{ $t('settings.notification_setting_drawer_marks_as_seen') }}
  9. </BooleanSetting>
  10. </li>
  11. <li>
  12. <BooleanSetting path="ignoreInactionableSeen">
  13. {{ $t('settings.notification_setting_ignore_inactionable_seen') }}
  14. </BooleanSetting>
  15. <div>
  16. <small>
  17. {{ $t('settings.notification_setting_ignore_inactionable_seen_tip') }}
  18. </small>
  19. </div>
  20. </li>
  21. <li>
  22. <BooleanSetting
  23. path="unseenAtTop"
  24. expert="1"
  25. >
  26. {{ $t('settings.notification_setting_unseen_at_top') }}
  27. </BooleanSetting>
  28. </li>
  29. </ul>
  30. </div>
  31. <div class="setting-item">
  32. <h2>{{ $t('settings.notification_setting_filters') }}</h2>
  33. <ul class="setting-list">
  34. <li>
  35. <BooleanSetting
  36. source="profile"
  37. path="blockNotificationsFromStrangers"
  38. >
  39. {{ $t('settings.notification_setting_block_from_strangers') }}
  40. </BooleanSetting>
  41. </li>
  42. <li>
  43. <h3> {{ $t('settings.notification_visibility') }}</h3>
  44. <p v-if="expertLevel > 0">
  45. {{ $t('settings.notification_setting_filters_chrome_push') }}
  46. </p>
  47. <ul class="setting-list two-column">
  48. <li>
  49. <h4> {{ $t('settings.notification_visibility_mentions') }}</h4>
  50. <ul class="setting-list">
  51. <li>
  52. <BooleanSetting path="notificationVisibility.mentions">
  53. {{ $t('settings.notification_visibility_in_column') }}
  54. </BooleanSetting>
  55. </li>
  56. <li>
  57. <BooleanSetting path="notificationNative.mentions">
  58. {{ $t('settings.notification_visibility_native_notifications') }}
  59. </BooleanSetting>
  60. </li>
  61. </ul>
  62. </li>
  63. <li>
  64. <h4> {{ $t('settings.notification_visibility_statuses') }}</h4>
  65. <ul class="setting-list">
  66. <li>
  67. <BooleanSetting path="notificationVisibility.statuses">
  68. {{ $t('settings.notification_visibility_in_column') }}
  69. </BooleanSetting>
  70. </li>
  71. <li>
  72. <BooleanSetting path="notificationNative.statuses">
  73. {{ $t('settings.notification_visibility_native_notifications') }}
  74. </BooleanSetting>
  75. </li>
  76. </ul>
  77. </li>
  78. <li>
  79. <h4> {{ $t('settings.notification_visibility_likes') }}</h4>
  80. <ul class="setting-list">
  81. <li>
  82. <BooleanSetting path="notificationVisibility.likes">
  83. {{ $t('settings.notification_visibility_in_column') }}
  84. </BooleanSetting>
  85. </li>
  86. <li>
  87. <BooleanSetting path="notificationNative.likes">
  88. {{ $t('settings.notification_visibility_native_notifications') }}
  89. </BooleanSetting>
  90. </li>
  91. </ul>
  92. </li>
  93. <li>
  94. <h4> {{ $t('settings.notification_visibility_repeats') }}</h4>
  95. <ul class="setting-list">
  96. <li>
  97. <BooleanSetting path="notificationVisibility.repeats">
  98. {{ $t('settings.notification_visibility_in_column') }}
  99. </BooleanSetting>
  100. </li>
  101. <li>
  102. <BooleanSetting path="notificationNative.repeats">
  103. {{ $t('settings.notification_visibility_native_notifications') }}
  104. </BooleanSetting>
  105. </li>
  106. </ul>
  107. </li>
  108. <li>
  109. <h4> {{ $t('settings.notification_visibility_emoji_reactions') }}</h4>
  110. <ul class="setting-list">
  111. <li>
  112. <BooleanSetting path="notificationVisibility.emojiReactions">
  113. {{ $t('settings.notification_visibility_in_column') }}
  114. </BooleanSetting>
  115. </li>
  116. <li>
  117. <BooleanSetting path="notificationNative.emojiReactions">
  118. {{ $t('settings.notification_visibility_native_notifications') }}
  119. </BooleanSetting>
  120. </li>
  121. </ul>
  122. </li>
  123. <li>
  124. <h4> {{ $t('settings.notification_visibility_follows') }}</h4>
  125. <ul class="setting-list">
  126. <li>
  127. <BooleanSetting path="notificationVisibility.follows">
  128. {{ $t('settings.notification_visibility_in_column') }}
  129. </BooleanSetting>
  130. </li>
  131. <li>
  132. <BooleanSetting path="notificationNative.follows">
  133. {{ $t('settings.notification_visibility_native_notifications') }}
  134. </BooleanSetting>
  135. </li>
  136. </ul>
  137. </li>
  138. <li>
  139. <h4> {{ $t('settings.notification_visibility_follow_requests') }}</h4>
  140. <ul class="setting-list">
  141. <li>
  142. <BooleanSetting path="notificationVisibility.followRequest">
  143. {{ $t('settings.notification_visibility_in_column') }}
  144. </BooleanSetting>
  145. </li>
  146. <li>
  147. <BooleanSetting path="notificationNative.followRequest">
  148. {{ $t('settings.notification_visibility_native_notifications') }}
  149. </BooleanSetting>
  150. </li>
  151. </ul>
  152. </li>
  153. <li>
  154. <h4> {{ $t('settings.notification_visibility_moves') }}</h4>
  155. <ul class="setting-list">
  156. <li>
  157. <BooleanSetting path="notificationVisibility.moves">
  158. {{ $t('settings.notification_visibility_in_column') }}
  159. </BooleanSetting>
  160. </li>
  161. <li>
  162. <BooleanSetting path="notificationNative.moves">
  163. {{ $t('settings.notification_visibility_native_notifications') }}
  164. </BooleanSetting>
  165. </li>
  166. </ul>
  167. </li>
  168. <li>
  169. <h4> {{ $t('settings.notification_visibility_polls') }}</h4>
  170. <ul class="setting-list">
  171. <li>
  172. <BooleanSetting path="notificationVisibility.polls">
  173. {{ $t('settings.notification_visibility_in_column') }}
  174. </BooleanSetting>
  175. </li>
  176. <li>
  177. <BooleanSetting path="notificationNative.polls">
  178. {{ $t('settings.notification_visibility_native_notifications') }}
  179. </BooleanSetting>
  180. </li>
  181. </ul>
  182. </li>
  183. <li v-if="canReceiveReports">
  184. <h4> {{ $t('settings.notification_visibility_reports') }}</h4>
  185. <ul class="setting-list">
  186. <li>
  187. <BooleanSetting path="notificationVisibility.reports">
  188. {{ $t('settings.notification_visibility_in_column') }}
  189. </BooleanSetting>
  190. </li>
  191. <li>
  192. <BooleanSetting path="notificationNative.reports">
  193. {{ $t('settings.notification_visibility_native_notifications') }}
  194. </BooleanSetting>
  195. </li>
  196. </ul>
  197. </li>
  198. </ul>
  199. </li>
  200. <li>
  201. <BooleanSetting path="showExtraNotifications">
  202. {{ $t('settings.notification_show_extra') }}
  203. </BooleanSetting>
  204. </li>
  205. <li>
  206. <ul class="setting-list suboptions">
  207. <li>
  208. <BooleanSetting
  209. path="showChatsInExtraNotifications"
  210. :disabled="!mergedConfig.showExtraNotifications"
  211. >
  212. {{ $t('settings.notification_extra_chats') }}
  213. </BooleanSetting>
  214. </li>
  215. <li>
  216. <BooleanSetting
  217. path="showAnnouncementsInExtraNotifications"
  218. :disabled="!mergedConfig.showExtraNotifications"
  219. >
  220. {{ $t('settings.notification_extra_announcements') }}
  221. </BooleanSetting>
  222. </li>
  223. <li>
  224. <BooleanSetting
  225. path="showFollowRequestsInExtraNotifications"
  226. :disabled="!mergedConfig.showExtraNotifications"
  227. >
  228. {{ $t('settings.notification_extra_follow_requests') }}
  229. </BooleanSetting>
  230. </li>
  231. <li>
  232. <BooleanSetting
  233. path="showExtraNotificationsTip"
  234. :disabled="!mergedConfig.showExtraNotifications"
  235. >
  236. {{ $t('settings.notification_extra_tip') }}
  237. </BooleanSetting>
  238. </li>
  239. </ul>
  240. </li>
  241. </ul>
  242. </div>
  243. <div
  244. v-if="expertLevel > 0"
  245. class="setting-item"
  246. >
  247. <h2>{{ $t('settings.notification_setting_privacy') }}</h2>
  248. <ul class="setting-list">
  249. <li>
  250. <BooleanSetting
  251. path="webPushNotifications"
  252. expert="1"
  253. >
  254. {{ $t('settings.enable_web_push_notifications') }}
  255. </BooleanSetting>
  256. <ul class="setting-list suboptions">
  257. <li>
  258. <BooleanSetting
  259. path="webPushAlwaysShowNotifications"
  260. :disabled="!mergedConfig.webPushNotifications"
  261. >
  262. {{ $t('settings.enable_web_push_always_show') }}
  263. </BooleanSetting>
  264. <div :class="{ faint: !mergedConfig.webPushNotifications }">
  265. <small>
  266. {{ $t('settings.enable_web_push_always_show_tip') }}
  267. </small>
  268. </div>
  269. </li>
  270. </ul>
  271. </li>
  272. <li>
  273. <BooleanSetting
  274. source="profile"
  275. path="webPushHideContents"
  276. expert="1"
  277. >
  278. {{ $t('settings.notification_setting_hide_notification_contents') }}
  279. </BooleanSetting>
  280. </li>
  281. </ul>
  282. </div>
  283. <div class="setting-item">
  284. <p>{{ $t('settings.notification_mutes') }}</p>
  285. <p>{{ $t('settings.notification_blocks') }}</p>
  286. </div>
  287. </div>
  288. </template>
  289. <script src="./notifications_tab.js"></script>
  290. <!-- <style lang="scss" src="./profile.scss"></style> -->