fix: update button enabling its package

This commit is contained in:
2025-05-01 16:32:10 +00:00
parent 2e17e0ae75
commit 9b86af282e
11 changed files with 81 additions and 33 deletions

View File

@ -295,7 +295,7 @@ listen<DownloadingStatus>('download-progress', (event) => {
pkg.hasAvailableUpdates
"
icon="pi pi-download"
label="UPDATE ALL"
:label="t('updateAll')"
size="small"
class="mr-4 m-2.5"
@click="pkg.updateAll()"

View File

@ -53,6 +53,6 @@ const remove = async () => {
class="self-center ml-4"
style="width: 2rem; height: 2rem"
:loading="pkg?.js.downloading"
v-on:click="async () => await pkgs.install(pkg)"
v-on:click="async () => await pkgs.install(pkg, true)"
/>
</template>

View File

@ -17,6 +17,7 @@ const install = async () => {
await invoke('install_package', {
key: pkgKey(props.pkg),
force: true,
enable: false,
});
} catch (err) {
if (props.pkg !== undefined) {