diff --git a/backend/app/service/app.go b/backend/app/service/app.go index afb9b9a3d..64034b9cb 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -474,6 +474,7 @@ func (a AppService) SyncAppListFromLocal() { if app.Status == constant.AppTakeDown { installs, _ := appInstallRepo.ListBy(appInstallRepo.WithAppId(app.ID)) if len(installs) > 0 { + updateApps = append(updateApps, app) continue } deleteAppIds = append(deleteAppIds, app.ID) diff --git a/frontend/src/views/app-store/apps/index.vue b/frontend/src/views/app-store/apps/index.vue index f5ebcab22..60b5ebd91 100644 --- a/frontend/src/views/app-store/apps/index.vue +++ b/frontend/src/views/app-store/apps/index.vue @@ -72,6 +72,7 @@ round size="small" @click="getAppDetail(app.key)" + :disabled="app.status === 'TakeDown'" > {{ $t('app.install') }} diff --git a/frontend/src/views/app-store/installed/index.vue b/frontend/src/views/app-store/installed/index.vue index 4ef8c8b91..45d7494d4 100644 --- a/frontend/src/views/app-store/installed/index.vue +++ b/frontend/src/views/app-store/installed/index.vue @@ -133,7 +133,10 @@ plain round size="small" - :disabled="installed.status !== 'Running'" + :disabled=" + installed.status !== 'Running' || + installed.app.status === 'TakeDown' + " @click="openUploads(installed.app.key, installed.name)" v-if="mode === 'installed'" > @@ -145,7 +148,10 @@ plain round size="small" - :disabled="installed.status !== 'Running'" + :disabled=" + installed.status !== 'Running' || + installed.app.status === 'TakeDown' + " @click="openBackups(installed.app.key, installed.name)" v-if="mode === 'installed'" > @@ -157,7 +163,10 @@ plain round size="small" - :disabled="installed.status !== 'Running'" + :disabled=" + installed.status !== 'Running' || + installed.app.status === 'TakeDown' + " @click="openOperate(installed, 'upgrade')" v-if="mode === 'upgrade'" >