feat: Uninstall only installedextensions

This commit is contained in:
Vlad Stan 2023-01-17 17:35:08 +02:00
parent 0195c242c2
commit 01b5536f3a

View File

@ -88,7 +88,7 @@
Manage</q-btn
>
<q-toggle
v-if="extension.isInstalled"
v-if="extension.isAvailable"
:label="extension.isActive ? 'Activated': 'Deactivated' "
color="secodary"
v-model="extension.isActive"
@ -168,9 +168,6 @@
color="primary unelevated mt-lg pt-lg"
>Install</q-btn
>
<span v-if="isInstalledVersion(selectedExtension, release)"
>xxxxx</span
>
</q-card-section>
<q-separator></q-separator>
<div
@ -184,7 +181,14 @@
</div>
<q-spinner v-else color="primary" size="2.55em"></q-spinner>
<div class="row q-mt-lg">
<q-btn @click="showUninstall()" flat color="red"> Uninstall</q-btn>
<q-btn
v-if="selectedExtension?.isInstalled"
@click="showUninstall()"
flat
color="red"
>
Uninstall</q-btn
>
<q-btn v-close-popup flat color="grey" class="q-ml-auto">Close</q-btn>
</div>
</q-card>