From 2e35289c3376881ca17b9330113c816a3327f245 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 3 May 2020 17:36:12 +0300 Subject: initial work on settings modal --- src/components/settings_modal/settings_modal.js | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/components/settings_modal/settings_modal.js (limited to 'src/components/settings_modal/settings_modal.js') diff --git a/src/components/settings_modal/settings_modal.js b/src/components/settings_modal/settings_modal.js new file mode 100644 index 00000000..1f4c038f --- /dev/null +++ b/src/components/settings_modal/settings_modal.js @@ -0,0 +1,39 @@ +import Modal from '../modal/modal.vue' +import TabSwitcher from '../tab_switcher/tab_switcher.js' + +import Profile from './tabs/profile.vue' +import Security from './tabs/security.vue' +import Notifications from './tabs/notifications.vue' +import DataImportExport from './tabs/data_import_export.vue' +import MutesAndBlocks from './tabs/mutes_and_blocks.vue' + +const SettingsModal = { + components: { + Modal, + TabSwitcher, + Profile, + Security, + Notifications, + DataImportExport, + MutesAndBlocks + }, + data () { + return { + resettingForm: false + } + }, + computed: { + isLoggedIn () { + return !!this.$store.state.users.currentUser + }, + modalActivated () { + return this.$store.state.interface.settingsModalState !== 'hidden' + } + }, + watch: { + }, + methods: { + } +} + +export default SettingsModal -- cgit v1.2.3-70-g09d2