1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-02 23:19:57 +00:00
elk/pages/settings/preferences/index.vue

42 lines
1.3 KiB
Vue
Raw Normal View History

2023-01-04 13:57:12 +00:00
<script setup lang="ts">
const { t } = useI18n()
useHeadFixed({
title: () => `${t('settings.preferences.label')} | ${t('nav.settings')}`,
})
const userSettings = useUserSettings()
2023-01-04 13:57:12 +00:00
</script>
<template>
<MainContent back-on-small-screen>
<template #title>
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<span>{{ $t('settings.preferences.label') }}</span>
</div>
</template>
2022-12-27 17:38:38 +00:00
<h3 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
<div i-ri-flask-line />
{{ $t('settings.feature_flags.title') }}
</h3>
<SettingsToggleItem
:checked="getFeatureFlag(userSettings, 'experimentalVirtualScroller')"
@click="toggleFeatureFlag('experimentalVirtualScroller')"
2022-12-27 17:38:38 +00:00
>
{{ $t('settings.feature_flags.virtual_scroll') }}
</SettingsToggleItem>
<SettingsToggleItem
:checked="getFeatureFlag(userSettings, 'experimentalGitHubCards')"
2022-12-27 17:38:38 +00:00
@click="toggleFeatureFlag('experimentalGitHubCards')"
>
{{ $t('settings.feature_flags.github_cards') }}
</SettingsToggleItem>
<SettingsToggleItem
:checked="getFeatureFlag(userSettings, 'experimentalUserPicker')"
2022-12-27 20:07:19 +00:00
@click="toggleFeatureFlag('experimentalUserPicker')"
2022-12-27 17:38:38 +00:00
>
2022-12-27 20:07:19 +00:00
{{ $t('settings.feature_flags.user_picker') }}
</SettingsToggleItem>
</MainContent>
</template>