2020-05-25 00:14:41 +00:00
|
|
|
<template>
|
|
|
|
<div class="settings-modal-panel panel">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<span class="title">
|
|
|
|
{{ $t('settings.settings') }}
|
|
|
|
</span>
|
2020-05-25 11:04:36 +00:00
|
|
|
<transition name="fade">
|
|
|
|
<template v-if="currentSaveStateNotice">
|
|
|
|
<div
|
|
|
|
v-if="currentSaveStateNotice.error"
|
|
|
|
class="alert error"
|
|
|
|
@click.prevent
|
2020-05-25 13:48:23 +00:00
|
|
|
>
|
2020-05-25 11:04:36 +00:00
|
|
|
{{ $t('settings.saving_err') }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
v-if="!currentSaveStateNotice.error"
|
|
|
|
class="alert transparent"
|
|
|
|
@click.prevent
|
2020-05-25 13:48:23 +00:00
|
|
|
>
|
2020-05-25 11:04:36 +00:00
|
|
|
{{ $t('settings.saving_ok') }}
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</transition>
|
2020-05-25 00:43:55 +00:00
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
@click="peekModal"
|
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
{{ $t('general.peek') }}
|
|
|
|
</button>
|
2020-05-25 00:43:55 +00:00
|
|
|
<button
|
|
|
|
class="btn"
|
|
|
|
@click="closeModal"
|
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
{{ $t('general.close') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<tab-switcher
|
|
|
|
ref="tabSwitcher"
|
2020-05-25 00:43:55 +00:00
|
|
|
class="settings_tab-switcher"
|
|
|
|
:side-tab-bar="true"
|
|
|
|
:scrollable-tabs="true"
|
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<div
|
|
|
|
:label="$t('settings.general')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="wrench"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<GeneralTab />
|
|
|
|
</div>
|
2020-05-25 00:43:55 +00:00
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.profile_tab')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="user"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<ProfileTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.security_tab')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="lock"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<SecurityTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.filtering')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="filter"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<FilteringTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.theme')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="brush"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<ThemeTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.notifications')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="chat"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<NotificationsTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.data_import_export_tab')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="download"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<DataImportExportTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
v-if="isLoggedIn"
|
|
|
|
:label="$t('settings.mutes_and_blocks')"
|
|
|
|
:fullHeight="true"
|
|
|
|
class="full-height"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="eye-off"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<MutesAndBlocksTab />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
:label="$t('settings.version.title')"
|
2020-05-25 13:10:14 +00:00
|
|
|
icon="info-circled"
|
2020-05-25 00:43:55 +00:00
|
|
|
>
|
2020-05-25 00:14:41 +00:00
|
|
|
<VersionTab />
|
|
|
|
</div>
|
|
|
|
</tab-switcher>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./settings_modal_content.js"></script>
|
|
|
|
|
|
|
|
<style src="./settings_modal_content.scss" lang="scss"></style>
|