2020-05-10 13:46:06 +10:00
|
|
|
import Modal from 'src/components/modal/modal.vue'
|
|
|
|
import TabSwitcher from 'src/components/tab_switcher/tab_switcher.js'
|
2020-05-04 00:36:12 +10:00
|
|
|
|
2020-05-10 13:46:06 +10:00
|
|
|
import DataImportExportTab from './tabs/data_import_export_tab.vue'
|
|
|
|
import MutesAndBlocksTab from './tabs/mutes_and_blocks_tab.vue'
|
|
|
|
import NotificationsTab from './tabs/notifications_tab.vue'
|
|
|
|
import FilteringTab from './tabs/filtering_tab.vue'
|
|
|
|
import SecurityTab from './tabs/security_tab/security_tab.vue'
|
|
|
|
import ProfileTab from './tabs/profile_tab.vue'
|
|
|
|
import GeneralTab from './tabs/general_tab.vue'
|
|
|
|
import VersionTab from './tabs/version_tab.vue'
|
|
|
|
import ThemeTab from './tabs/theme_tab/theme_tab.vue'
|
2020-05-04 00:36:12 +10:00
|
|
|
|
|
|
|
const SettingsModal = {
|
|
|
|
components: {
|
|
|
|
Modal,
|
|
|
|
TabSwitcher,
|
2020-05-10 13:46:06 +10:00
|
|
|
|
|
|
|
DataImportExportTab,
|
|
|
|
MutesAndBlocksTab,
|
|
|
|
NotificationsTab,
|
|
|
|
FilteringTab,
|
|
|
|
SecurityTab,
|
|
|
|
ProfileTab,
|
|
|
|
GeneralTab,
|
|
|
|
VersionTab,
|
|
|
|
ThemeTab
|
2020-05-04 00:36:12 +10:00
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
resettingForm: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
isLoggedIn () {
|
|
|
|
return !!this.$store.state.users.currentUser
|
|
|
|
},
|
|
|
|
modalActivated () {
|
|
|
|
return this.$store.state.interface.settingsModalState !== 'hidden'
|
2020-05-10 13:46:06 +10:00
|
|
|
},
|
|
|
|
modalPeeked () {
|
|
|
|
return this.$store.state.interface.settingsModalState === 'minimized'
|
2020-05-04 00:36:12 +10:00
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
},
|
|
|
|
methods: {
|
2020-05-10 13:46:06 +10:00
|
|
|
closeModal () {
|
|
|
|
this.$store.dispatch('closeSettingsModal')
|
|
|
|
},
|
|
|
|
peekModal () {
|
|
|
|
this.$store.dispatch('togglePeekSettingsModal')
|
|
|
|
}
|
2020-05-04 00:36:12 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default SettingsModal
|