mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-18 09:01:46 +03:00
feat: enable virtual scroller by default (#892)
This commit is contained in:
parent
6a6e6bfb74
commit
efe7d639c1
3 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ const { paginator, stream, account, buffer = 10 } = defineProps<{
|
|||
}>()
|
||||
|
||||
const { formatNumber } = useHumanReadableNumber()
|
||||
const virtualScroller = $(useFeatureFlag('experimentalVirtualScroll'))
|
||||
const virtualScroller = $(useFeatureFlag('experimentalVirtualScroller'))
|
||||
|
||||
const showOriginSite = $computed(() =>
|
||||
account && account.id !== currentUser.value?.account.id && getServerName(account) !== currentServer.value,
|
||||
|
|
|
@ -2,14 +2,14 @@ import type { Ref } from 'vue'
|
|||
import { userSettings } from '.'
|
||||
|
||||
export interface FeatureFlags {
|
||||
experimentalVirtualScroll: boolean
|
||||
experimentalVirtualScroller: boolean
|
||||
experimentalGitHubCards: boolean
|
||||
experimentalUserPicker: boolean
|
||||
}
|
||||
export type FeatureFlagsMap = Record<string, FeatureFlags>
|
||||
|
||||
const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
|
||||
experimentalVirtualScroll: false,
|
||||
experimentalVirtualScroller: true,
|
||||
experimentalGitHubCards: true,
|
||||
experimentalUserPicker: true,
|
||||
}
|
||||
|
|
|
@ -18,8 +18,8 @@ useHeadFixed({
|
|||
{{ $t('settings.feature_flags.title') }}
|
||||
</h3>
|
||||
<SettingsToggleItem
|
||||
:checked="getFeatureFlag('experimentalVirtualScroll')"
|
||||
@click="toggleFeatureFlag('experimentalVirtualScroll')"
|
||||
:checked="getFeatureFlag('experimentalVirtualScroller')"
|
||||
@click="toggleFeatureFlag('experimentalVirtualScroller')"
|
||||
>
|
||||
{{ $t('settings.feature_flags.virtual_scroll') }}
|
||||
</SettingsToggleItem>
|
||||
|
|
Loading…
Reference in a new issue