akkoma-fe/src/components/settings_modal/settings_modal_content.vue

87 lines
1.9 KiB
Vue
Raw Normal View History

<template>
<div class="settings-modal-panel panel">
<div class="panel-heading">
<span class="title">
{{ $t('settings.settings') }}
</span>
2020-05-25 00:43:55 +00:00
<button
class="btn"
@click="peekModal"
>
{{ $t('general.peek') }}
</button>
2020-05-25 00:43:55 +00:00
<button
class="btn"
@click="closeModal"
>
{{ $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"
>
<div
:label="$t('settings.general')"
2020-05-25 00:43:55 +00:00
>
<GeneralTab />
</div>
2020-05-25 00:43:55 +00:00
<div
v-if="isLoggedIn"
:label="$t('settings.profile_tab')"
>
<ProfileTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.security_tab')"
2020-05-25 00:43:55 +00:00
>
<SecurityTab />
</div>
<div
:label="$t('settings.filtering')"
2020-05-25 00:43:55 +00:00
>
<FilteringTab />
</div>
<div
:label="$t('settings.theme')"
2020-05-25 00:43:55 +00:00
>
<ThemeTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.notifications')"
2020-05-25 00:43:55 +00:00
>
<NotificationsTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.data_import_export_tab')"
2020-05-25 00:43:55 +00:00
>
<DataImportExportTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.mutes_and_blocks')"
:fullHeight="true"
class="full-height"
2020-05-25 00:43:55 +00:00
>
<MutesAndBlocksTab />
</div>
<div
:label="$t('settings.version.title')"
2020-05-25 00:43:55 +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>