Skip to content

Commit c24fc07

Browse files
committed
feat: missing ui and lock update
1 parent c828990 commit c24fc07

3 files changed

Lines changed: 84 additions & 44 deletions

File tree

main/components/GameStatusButton.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@
4646
class="absolute right-0 z-[500] mt-2 w-32 origin-top-right rounded-md bg-zinc-900 shadow-lg ring-1 ring-zinc-100/5 focus:outline-none"
4747
>
4848
<div class="py-1">
49+
<MenuItem v-slot="{ active }">
50+
<button
51+
@click="() => emit('install')"
52+
:class="[
53+
active
54+
? 'bg-zinc-800 text-zinc-100 outline-none'
55+
: 'text-zinc-400',
56+
'w-full px-4 py-2 text-sm inline-flex justify-between',
57+
]"
58+
>
59+
Install
60+
<ArrowDownTrayIcon class="size-5" />
61+
</button>
62+
</MenuItem>
63+
4964
<MenuItem v-if="showDropdown" v-slot="{ active }">
5065
<button
5166
@click="() => emit('options')"

main/pages/library/[id]/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
>
2323
{{ game.mName }}
2424
</h1>
25-
<div class="relative" v-if="status.type === 'Installed'">
25+
<div class="relative" v-if="status.type === 'Installed' && status.install_type.type != InstalledType.PartiallyInstalled">
2626
<div
27-
v-if="!version!.userConfiguration.enableUpdates"
27+
v-if="!version?.userConfiguration?.enableUpdates"
2828
class="absolute mt-1 inline-flex items-center gap-x-1 text-xs text-zinc-400"
2929
>
3030
Version pinned
@@ -697,6 +697,7 @@ async function installFlow() {
697697
installFlowOpen.value = true;
698698
versionOptions.value = undefined;
699699
installDirs.value = undefined;
700+
installError.value = undefined;
700701
701702
try {
702703
versionOptions.value = await invoke("fetch_game_version_options", {

main/pnpm-lock.yaml

Lines changed: 66 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)