diff --git a/web/src/assets/locales/en.json b/web/src/assets/locales/en.json index c4e7a383e..b610d7b21 100644 --- a/web/src/assets/locales/en.json +++ b/web/src/assets/locales/en.json @@ -213,6 +213,10 @@ "disable": "Disable repository", "success": "Repository disabled" }, + "enable": { + "enable": "Enable repository", + "success": "Repository enabled" + }, "delete": { "delete": "Delete repository", "confirm": "All data will be lost after this action!!!\n\nDo you really want to proceed?", diff --git a/web/src/components/admin/settings/AdminQueueTab.vue b/web/src/components/admin/settings/AdminQueueTab.vue index 70c6636a6..b38e849cd 100644 --- a/web/src/components/admin/settings/AdminQueueTab.vue +++ b/web/src/components/admin/settings/AdminQueueTab.vue @@ -65,12 +65,9 @@ {{ task.id }} - + + + - + + { + if (!repo) { + throw new Error('Unexpected: Repo should be set'); + } + + await apiClient.activateRepo(repo.value.owner, repo.value.name); + notifications.notify({ title: i18n.t('repo.settings.actions.enable.success'), type: 'success' }); + }); + const { doSubmit: deactivateRepo, isLoading: isDeactivatingRepo } = useAsyncAction(async () => { if (!repo) { throw new Error('Unexpected: Repo should be set'); @@ -96,12 +115,15 @@ export default defineComponent({ }); return { + isActive: repo?.value.active, isRepairingRepo, isDeletingRepo, isDeactivatingRepo, + isActivatingRepo, deleteRepo, repairRepo, deactivateRepo, + activateRepo, }; }, }); diff --git a/web/src/views/repo/pipeline/Pipeline.vue b/web/src/views/repo/pipeline/Pipeline.vue index 18c8f4a4e..9149a3166 100644 --- a/web/src/views/repo/pipeline/Pipeline.vue +++ b/web/src/views/repo/pipeline/Pipeline.vue @@ -17,7 +17,7 @@ {{ $t('repo.pipeline.protected.awaits') }} - + - + {{ $t('repo.pipeline.protected.declined') }}
{{ $t('repo.pipeline.protected.awaits') }}
{{ $t('repo.pipeline.protected.declined') }}