1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-04 16:09:59 +00:00

feat: enable virtual scroller by default (#892)

This commit is contained in:
Daniel Roe 2023-01-09 11:32:49 +00:00 committed by GitHub
parent 6a6e6bfb74
commit efe7d639c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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,

View file

@ -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,
}

View file

@ -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>