elk/pages/settings/preferences/index.vue

40 lines
1.2 KiB
Vue
Raw Normal View History

2023-01-04 14:57:12 +01:00
<script setup lang="ts">
2023-01-09 21:20:26 +01:00
const { $t } = useFluent()
2023-01-04 14:57:12 +01:00
useHeadFixed({
2023-01-09 21:20:26 +01:00
title: () => `${$t('settings_preferences_label')} | ${$t('nav_settings')}`,
2023-01-04 14:57:12 +01:00
})
</script>
<template>
<MainContent back-on-small-screen>
<template #title>
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
2023-01-09 21:20:26 +01:00
<span>{{ $t('settings_preferences_label') }}</span>
</div>
</template>
2022-12-27 18:38:38 +01:00
<h3 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
<div i-ri-flask-line />
2023-01-09 21:20:26 +01:00
{{ $t('settings_feature_flags_title') }}
2022-12-27 18:38:38 +01:00
</h3>
<SettingsToggleItem
:checked="getFeatureFlag('experimentalVirtualScroller')"
@click="toggleFeatureFlag('experimentalVirtualScroller')"
2022-12-27 18:38:38 +01:00
>
2023-01-09 21:20:26 +01:00
{{ $t('settings_feature_flags_virtual_scroll') }}
</SettingsToggleItem>
<SettingsToggleItem
:checked="getFeatureFlag('experimentalGitHubCards')"
2022-12-27 18:38:38 +01:00
@click="toggleFeatureFlag('experimentalGitHubCards')"
>
2023-01-09 21:20:26 +01:00
{{ $t('settings_feature_flags_github_cards') }}
</SettingsToggleItem>
<SettingsToggleItem
:checked="getFeatureFlag('experimentalUserPicker')"
2022-12-27 21:07:19 +01:00
@click="toggleFeatureFlag('experimentalUserPicker')"
2022-12-27 18:38:38 +01:00
>
2023-01-09 21:20:26 +01:00
{{ $t('settings_feature_flags_user_picker') }}
</SettingsToggleItem>
</MainContent>
</template>