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

83 lines
1.7 KiB
Vue
Raw Normal View History

<template>
<tab-switcher
ref="tabSwitcher"
class="settings_tab-switcher"
:side-tab-bar="true"
:scrollable-tabs="true"
2020-05-26 21:02:36 +00:00
>
<div
:label="$t('settings.general')"
icon="wrench"
data-tab-name="general"
2020-05-26 21:02:36 +00:00
>
<GeneralTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.profile_tab')"
icon="user"
data-tab-name="profile"
2020-05-26 21:02:36 +00:00
>
<ProfileTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.security_tab')"
icon="lock"
data-tab-name="security"
2020-05-26 21:02:36 +00:00
>
<SecurityTab />
</div>
<div
:label="$t('settings.filtering')"
icon="filter"
data-tab-name="filtering"
2020-05-26 21:02:36 +00:00
>
<FilteringTab />
</div>
<div
:label="$t('settings.theme')"
2020-10-20 19:54:43 +00:00
icon="paint-brush"
data-tab-name="theme"
2020-05-26 21:02:36 +00:00
>
<ThemeTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.notifications')"
2020-10-20 19:54:43 +00:00
icon="bell"
data-tab-name="notifications"
2020-05-26 21:02:36 +00:00
>
<NotificationsTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.data_import_export_tab')"
icon="download"
data-tab-name="dataImportExport"
2020-05-26 21:02:36 +00:00
>
<DataImportExportTab />
</div>
<div
v-if="isLoggedIn"
:label="$t('settings.mutes_and_blocks')"
:fullHeight="true"
2020-10-20 19:54:43 +00:00
icon="eye-slash"
data-tab-name="mutesAndBlocks"
2020-05-26 21:02:36 +00:00
>
<MutesAndBlocksTab />
</div>
<div
:label="$t('settings.version.title')"
2020-10-20 19:54:43 +00:00
icon="info"
data-tab-name="version"
2020-05-26 21:02:36 +00:00
>
<VersionTab />
</div>
</tab-switcher>
</template>
<script src="./settings_modal_content.js"></script>
<style src="./settings_modal_content.scss" lang="scss"></style>