[clean] Replace unneeded computed with initialized ref

This commit is contained in:
Ferdinand Thiessen 2021-11-21 11:19:08 +01:00
parent 2fc411d51d
commit 04e3c57397
1 changed files with 1 additions and 13 deletions

View File

@ -105,19 +105,7 @@ export default defineComponent({
const router = useRouter();
const mainStore = useMainStore();
const flaschengeist = inject<FG_Plugin.Flaschengeist>('flaschengeist');
const _leftDrawer = ref<boolean|undefined>();
const leftDrawer = computed({
get: () => {
if (_leftDrawer.value !== undefined) {
return _leftDrawer.value
}
if (Platform.is.mobile) {
return false
}
return true
},
set: (val) => _leftDrawer.value = val
})
const leftDrawer = ref(!Platform.is.mobile);
const leftDrawerMini = ref(false);
const mainLinks = flaschengeist?.menuLinks || [];
const notifications = computed(() => mainStore.notifications.slice().reverse());