yandere_fe/src/components/settings_modal/settings_modal_content.vue

106 lines
2.4 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 04:04:36 -07:00
<transition name="fade">
<template v-if="currentSaveStateNotice">
<div
v-if="currentSaveStateNotice.error"
class="alert error"
@click.prevent
>
{{ $t('settings.saving_err') }}
</div>
<div
v-if="!currentSaveStateNotice.error"
class="alert transparent"
@click.prevent
>
{{ $t('settings.saving_ok') }}
</div>
</template>
</transition>
2020-05-24 17:43:55 -07:00
<button
class="btn"
@click="peekModal"
>
{{ $t('general.peek') }}
</button>
2020-05-24 17:43:55 -07:00
<button
class="btn"
@click="closeModal"
>
{{ $t('general.close') }}
</button>
</div>
<div class="panel-body">
<tab-switcher
ref="tabSwitcher"
2020-05-24 17:43:55 -07:00
class="settings_tab-switcher"
:side-tab-bar="true"
:scrollable-tabs="true"
>
<div
:label="$t('settings.general')"
2020-05-24 17:43:55 -07:00
>
<GeneralTab />
</div>
2020-05-24 17:43:55 -07:00
<div
v-if="isLoggedIn"
:label="$t('settings.profile_tab')"
>
<ProfileTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.security_tab')"
2020-05-24 17:43:55 -07:00
>
<SecurityTab />
</div>
<div
:label="$t('settings.filtering')"
2020-05-24 17:43:55 -07:00
>
<FilteringTab />
</div>
<div
:label="$t('settings.theme')"
2020-05-24 17:43:55 -07:00
>
<ThemeTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.notifications')"
2020-05-24 17:43:55 -07:00
>
<NotificationsTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.data_import_export_tab')"
2020-05-24 17:43:55 -07:00
>
<DataImportExportTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.mutes_and_blocks')"
:fullHeight="true"
class="full-height"
2020-05-24 17:43:55 -07:00
>
<MutesAndBlocksTab />
</div>
<div
:label="$t('settings.version.title')"
2020-05-24 17:43:55 -07:00
>
<VersionTab />
</div>
</tab-switcher>
</div>
</div>
</template>
<script src="./settings_modal_content.js"></script>
<style src="./settings_modal_content.scss" lang="scss"></style>