2020-05-03 07:36:12 -07:00
|
|
|
<template>
|
|
|
|
<Modal
|
|
|
|
:is-open="modalActivated"
|
|
|
|
class="settings-modal"
|
2020-05-09 20:46:06 -07:00
|
|
|
:class="{ peek: modalPeeked }"
|
|
|
|
:no-background="modalPeeked"
|
2020-05-03 07:36:12 -07:00
|
|
|
>
|
|
|
|
<div class="settings-modal-panel panel">
|
|
|
|
<div class="panel-heading">
|
2020-05-09 20:46:06 -07:00
|
|
|
<span class="title">
|
|
|
|
{{ $t('settings.settings') }}
|
|
|
|
</span>
|
|
|
|
<button class="btn" @click="peekModal">
|
|
|
|
{{ $t('general.peek') }}
|
|
|
|
</button>
|
|
|
|
<button class="btn" @click="closeModal">
|
|
|
|
{{ $t('general.close') }}
|
|
|
|
</button>
|
2020-05-03 07:36:12 -07:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<tab-switcher
|
|
|
|
class="settings_tab-switcher"
|
|
|
|
:sideTabBar="true"
|
|
|
|
:scrollableTabs="true"
|
|
|
|
ref="tabSwitcher"
|
|
|
|
>
|
2020-05-23 16:06:55 -07:00
|
|
|
<div
|
|
|
|
:label="$t('settings.general')"
|
|
|
|
>
|
|
|
|
<GeneralTab />
|
|
|
|
</div>
|
|
|
|
<div v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.profile_tab')"
|
|
|
|
>
|
|
|
|
<ProfileTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.security_tab')"
|
|
|
|
>
|
|
|
|
<SecurityTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.filtering')"
|
|
|
|
>
|
|
|
|
<FilteringTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.theme')"
|
|
|
|
>
|
|
|
|
<ThemeTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.notifications')"
|
|
|
|
>
|
|
|
|
<NotificationsTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.data_import_export_tab')"
|
|
|
|
>
|
|
|
|
<DataImportExportTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.mutes_and_blocks')"
|
|
|
|
:fullHeight="true"
|
|
|
|
class="full-height"
|
|
|
|
>
|
|
|
|
<MutesAndBlocksTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.version.title')"
|
|
|
|
>
|
|
|
|
<VersionTab />
|
|
|
|
</div>
|
2020-05-03 07:36:12 -07:00
|
|
|
</tab-switcher>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./settings_modal.js"></script>
|
|
|
|
|
|
|
|
<style src="./settings_modal.scss" lang="scss"></style>
|