[fix] small fixes for ext upgrades (#2941)

This commit is contained in:
Vlad Stan 2025-02-10 10:52:22 +02:00 committed by GitHub
parent 828261d696
commit 69350849b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -608,20 +608,21 @@ window.ExtensionsPageLogic = {
ext.isUpgraded = true ext.isUpgraded = true
ext.inProgress = false ext.inProgress = false
ext.installedRelease = ext.latestRelease ext.installedRelease = ext.latestRelease
ext.isActive = true
this.toggleExtension(ext) this.toggleExtension(ext)
} catch (err) { } catch (err) {
console.warn(err) console.warn(err)
Quasar.Notify.create({ Quasar.Notify.create({
type: 'negative', type: 'negative',
message: `Failed to update ${ext.code}!` message: `Failed to update ${ext.id}!`
}) })
} finally { } finally {
ext.inProgress = false ext.inProgress = false
} }
} }
Quasar.Notify.create({ Quasar.Notify.create({
type: 'positive', type: count ? 'positive' : 'warning',
message: `${count} extensions updated!` message: `${count ? count : 'No'} extensions updated!`
}) })
this.showUpdateAllDialog = false this.showUpdateAllDialog = false
setTimeout(() => { setTimeout(() => {