refactor: preferences settings (#1173)

This commit is contained in:
webfansplz 2023-01-15 22:19:22 +08:00 committed by GitHub
parent ccad8bf22b
commit 88c96cb304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 108 additions and 203 deletions

View file

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { useFeatureFlag } from '~/composables/settings'
import { usePreferences } from '~/composables/settings'
const route = useRoute()
const userSettings = useUserSettings()
@ -7,7 +7,7 @@ const userSettings = useUserSettings()
const wideLayout = computed(() => route.meta.wideLayout ?? false)
const showUserPicker = logicAnd(
useFeatureFlag('experimentalUserPicker'),
usePreferences('experimentalUserPicker'),
() => useUsers().value.length > 1,
)
</script>