diff --git a/src/config/locales/en/translation.json b/src/config/locales/en/translation.json index 5b36f193..3fcc8edf 100644 --- a/src/config/locales/en/translation.json +++ b/src/config/locales/en/translation.json @@ -99,6 +99,16 @@ "fav_rb_sound": "Favorite and Boost:", "toot_sound": "Toot:" }, + "notification": { + "title": "Notification", + "notify": { + "title": "Notify", + "reply": "Reply:", + "reblog": "Reblog:", + "favourite": "Favourite:", + "follow": "Follow:" + } + }, "account": { "title": "Account", "connected": "Connected Account", diff --git a/src/renderer/components/Preferences.vue b/src/renderer/components/Preferences.vue index 72646297..b5af2abb 100644 --- a/src/renderer/components/Preferences.vue +++ b/src/renderer/components/Preferences.vue @@ -23,11 +23,15 @@ {{ $t('preferences.general.title') }} - + + + {{ $t('preferences.notification.title') }} + + {{ $t('preferences.account.title') }} - + {{ $t('preferences.language.title') }} @@ -60,6 +64,9 @@ export default { general () { this.$router.push('/preferences/general') }, + notification () { + this.$router.push('/preferences/notification') + }, account () { this.$router.push('/preferences/account') }, diff --git a/src/renderer/components/Preferences/Notification.vue b/src/renderer/components/Preferences/Notification.vue new file mode 100644 index 00000000..3a63684f --- /dev/null +++ b/src/renderer/components/Preferences/Notification.vue @@ -0,0 +1,74 @@ + + + + + diff --git a/src/renderer/router/index.js b/src/renderer/router/index.js index 332db7ac..53e77f61 100644 --- a/src/renderer/router/index.js +++ b/src/renderer/router/index.js @@ -26,6 +26,11 @@ export default new Router({ name: 'general', component: require('@/components/Preferences/General').default }, + { + path: 'notification', + name: 'notification', + component: require('@/components/Preferences/Notification').default + }, { path: 'account', name: 'account', diff --git a/src/renderer/store/Preferences.js b/src/renderer/store/Preferences.js index 3f11027a..3632eb04 100644 --- a/src/renderer/store/Preferences.js +++ b/src/renderer/store/Preferences.js @@ -1,13 +1,15 @@ import General from './Preferences/General' import Account from './Preferences/Account' import Language from './Preferences/Language' +import Notification from './Preferences/Notification' const Preferences = { namespaced: true, modules: { General, Account, - Language + Language, + Notification }, state: { defaultActive: '1' diff --git a/src/renderer/store/Preferences/Notification.js b/src/renderer/store/Preferences/Notification.js new file mode 100644 index 00000000..e69de29b