1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-20 01:28:01 +09:00
elk/components/nav/SelectFeatureFlags.vue

36 lines
1.1 KiB
Vue
Raw Normal View History

2022-11-29 07:57:27 +09:00
<script setup lang="ts">
const featureFlags = useFeatureFlags()
</script>
<template>
<CommonDropdown placement="top">
<slot />
<template #popper>
<CommonDropdownItem
:checked="featureFlags.experimentalVirtualScroll"
@click="toggleFeatureFlag('experimentalVirtualScroll')"
>
{{ $t('feature_flag.virtual_scroll') }}
</CommonDropdownItem>
<CommonDropdownItem
:checked="featureFlags.experimentalAvatarOnAvatar"
@click="toggleFeatureFlag('experimentalAvatarOnAvatar')"
>
{{ $t('feature_flag.avatar_on_avatar') }}
</CommonDropdownItem>
2022-12-18 06:11:39 +09:00
<CommonDropdownItem
2022-12-18 06:28:47 +09:00
:checked="featureFlags.experimentalGitHubCards"
2022-12-18 06:11:39 +09:00
@click="toggleFeatureFlag('experimentalGitHubCards')"
>
{{ $t('feature_flag.github_cards') }}
</CommonDropdownItem>
<CommonDropdownItem
:checked="featureFlags.experimentalUserSwitcherSidebar"
@click="toggleFeatureFlag('experimentalUserSwitcherSidebar')"
>
{{ $t('feature_flag.user_switcher_sidebar') }}
</CommonDropdownItem>
</template>
</CommonDropdown>
2022-11-29 07:57:27 +09:00
</template>