fix: misc cleanup

This commit is contained in:
2025-04-23 14:24:35 +00:00
parent 8b2c1a04ee
commit f26d83f291
11 changed files with 89 additions and 59 deletions

View File

@ -22,7 +22,7 @@ const empty = ref(false);
const gameSublist: Ref<string[]> = ref([]);
invoke('get_game_packages', {
game: prf.current?.meta.game,
game: prf.current?.meta.game ?? null,
}).then((list) => {
gameSublist.value = list as string[];
});
@ -55,6 +55,9 @@ const group = computed(() => {
const missing = computed(() => {
return prf.current?.data.mods.filter((m) => !pkgs.hasLocal(m)) ?? [];
});
const emptyVisible = ref(false);
setTimeout(() => (emptyVisible.value = true), 500);
</script>
<template>
@ -84,5 +87,7 @@ const missing = computed(() => {
<Fieldset v-for="(namespace, key) in group" :legend="key.toString()">
<ModListEntry v-for="p in namespace" :pkg="p" />
</Fieldset>
<div v-if="empty === true" class="text-3xl fadein"></div>
<div v-if="empty === true && emptyVisible === true" class="text-3xl fadein">
</div>
</template>