aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/tabs/notifications_tab.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-05-10 06:46:06 +0300
committerHenry Jameson <me@hjkos.com>2020-05-10 06:46:06 +0300
commitbcebec478e43b3851e85c94335940e8fc7546cc8 (patch)
tree085b19f056e0d2522f0b0a0f9125fda3fd082f66 /src/components/settings_modal/tabs/notifications_tab.js
parent2e35289c3376881ca17b9330113c816a3327f245 (diff)
moved stuff from settings, cleaned up naming for tabs, added close and peek
Diffstat (limited to 'src/components/settings_modal/tabs/notifications_tab.js')
-rw-r--r--src/components/settings_modal/tabs/notifications_tab.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/settings_modal/tabs/notifications_tab.js b/src/components/settings_modal/tabs/notifications_tab.js
new file mode 100644
index 00000000..3e44c95d
--- /dev/null
+++ b/src/components/settings_modal/tabs/notifications_tab.js
@@ -0,0 +1,27 @@
+import Checkbox from 'src/components/checkbox/checkbox.vue'
+
+const NotificationsTab = {
+ data () {
+ return {
+ activeTab: 'profile',
+ notificationSettings: this.$store.state.users.currentUser.notification_settings,
+ newDomainToMute: ''
+ }
+ },
+ components: {
+ Checkbox
+ },
+ computed: {
+ user () {
+ return this.$store.state.users.currentUser
+ }
+ },
+ methods: {
+ updateNotificationSettings () {
+ this.$store.state.api.backendInteractor
+ .updateNotificationSettings({ settings: this.notificationSettings })
+ }
+ }
+}
+
+export default NotificationsTab