feat: toggleable feature flags (#209)
This commit is contained in:
parent
f08777f629
commit
69d009d02a
10 changed files with 111 additions and 12 deletions
24
components/nav/SelectFeatureFlags.vue
Normal file
24
components/nav/SelectFeatureFlags.vue
Normal file
|
@ -0,0 +1,24 @@
|
|||
<script setup lang="ts">
|
||||
const { t } = useI18n()
|
||||
|
||||
const featureFlags = useFeatureFlags()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommonTooltip :content="t('nav_footer.select_feature_flags')">
|
||||
<CommonDropdown>
|
||||
<button flex>
|
||||
<div i-ri:flag-line text-lg />
|
||||
</button>
|
||||
|
||||
<template #popper>
|
||||
<CommonDropdownItem
|
||||
:checked="featureFlags.experimentalVirtualScroll"
|
||||
@click="toggleFeatureFlag('experimentalVirtualScroll')"
|
||||
>
|
||||
{{ t('feature_flag.virtual_scroll') }}
|
||||
</CommonDropdownItem>
|
||||
</template>
|
||||
</CommonDropdown>
|
||||
</CommonTooltip>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue