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

115 lines
2.7 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 21:04:36 +10:00
<transition name="fade">
<template v-if="currentSaveStateNotice">
<div
v-if="currentSaveStateNotice.error"
class="alert error"
@click.prevent
2020-05-25 23:48:23 +10:00
>
2020-05-25 21:04:36 +10:00
{{ $t('settings.saving_err') }}
</div>
<div
v-if="!currentSaveStateNotice.error"
class="alert transparent"
@click.prevent
2020-05-25 23:48:23 +10:00
>
2020-05-25 21:04:36 +10:00
{{ $t('settings.saving_ok') }}
</div>
</template>
</transition>
2020-05-25 10:43:55 +10:00
<button
class="btn"
@click="peekModal"
>
{{ $t('general.peek') }}
</button>
2020-05-25 10:43:55 +10:00
<button
class="btn"
@click="closeModal"
>
{{ $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"
>
<div
:label="$t('settings.general')"
2020-05-25 23:10:14 +10:00
icon="wrench"
2020-05-25 10:43:55 +10:00
>
<GeneralTab />
</div>
2020-05-25 10:43:55 +10:00
<div
v-if="isLoggedIn"
:label="$t('settings.profile_tab')"
2020-05-25 23:10:14 +10:00
icon="user"
2020-05-25 10:43:55 +10:00
>
<ProfileTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.security_tab')"
2020-05-25 23:10:14 +10:00
icon="lock"
2020-05-25 10:43:55 +10:00
>
<SecurityTab />
</div>
<div
:label="$t('settings.filtering')"
2020-05-25 23:10:14 +10:00
icon="filter"
2020-05-25 10:43:55 +10:00
>
<FilteringTab />
</div>
<div
:label="$t('settings.theme')"
2020-05-25 23:10:14 +10:00
icon="brush"
2020-05-25 10:43:55 +10:00
>
<ThemeTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.notifications')"
2020-05-25 23:10:14 +10:00
icon="chat"
2020-05-25 10:43:55 +10:00
>
<NotificationsTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.data_import_export_tab')"
2020-05-25 23:10:14 +10:00
icon="download"
2020-05-25 10:43:55 +10:00
>
<DataImportExportTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.mutes_and_blocks')"
:fullHeight="true"
class="full-height"
2020-05-25 23:10:14 +10:00
icon="eye-off"
2020-05-25 10:43:55 +10:00
>
<MutesAndBlocksTab />
</div>
<div
:label="$t('settings.version.title')"
2020-05-25 23:10:14 +10:00
icon="info-circled"
2020-05-25 10:43:55 +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>