2020-05-25 10:14:41 +10:00
|
|
|
<template>
|
|
|
|
<div class="settings-modal-panel panel">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<span class="title">
|
|
|
|
{{ $t('settings.settings') }}
|
|
|
|
</span>
|
2020-05-25 10:43:55 +10:00
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
@click="peekModal"
|
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
{{ $t('general.peek') }}
|
|
|
|
</button>
|
2020-05-25 10:43:55 +10:00
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
@click="closeModal"
|
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
{{ $t('general.close') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<tab-switcher
|
|
|
|
ref="tabSwitcher"
|
2020-05-25 10:43:55 +10:00
|
|
|
class="settings_tab-switcher"
|
|
|
|
:side-tab-bar="true"
|
|
|
|
:scrollable-tabs="true"
|
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<div
|
|
|
|
:label="$t('settings.general')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<GeneralTab />
|
|
|
|
</div>
|
2020-05-25 10:43:55 +10:00
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.profile_tab')"
|
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<ProfileTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.security_tab')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<SecurityTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.filtering')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<FilteringTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.theme')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<ThemeTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.notifications')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<NotificationsTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.data_import_export_tab')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<DataImportExportTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.mutes_and_blocks')"
|
|
|
|
:fullHeight="true"
|
|
|
|
class="full-height"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<MutesAndBlocksTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.version.title')"
|
2020-05-25 10:43:55 +10:00
|
|
|
>
|
2020-05-25 10:14:41 +10:00
|
|
|
<VersionTab />
|
|
|
|
</div>
|
|
|
|
</tab-switcher>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./settings_modal_content.js"></script>
|
|
|
|
|
|
|
|
<style src="./settings_modal_content.scss" lang="scss"></style>
|