mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-29 13:58:54 +03:00
cd85871d01
* feat: account switcher sidebar * fix: defer loading sidebar until masto initialised * fix: only show user switcher for 2 or more accounts * chore: use `ofetch` (newer version of `ohymfetch`) * chore: early alpha warning * fix: handle missing user in github preview * refactor: avoid circular auto-import Co-authored-by: Daniel Roe <daniel@roe.dev>
35 lines
1.1 KiB
Vue
35 lines
1.1 KiB
Vue
<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>
|
|
<CommonDropdownItem
|
|
:checked="featureFlags.experimentalGitHubCards"
|
|
@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>
|
|
</template>
|