mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-25 11:21:02 +00:00
Remove review button from approval view (#3617)
Not required anymore after https://github.com/woodpecker-ci/woodpecker/pull/2757 was merged.
This commit is contained in:
parent
00f0fcd416
commit
21f87b4b1d
2 changed files with 0 additions and 13 deletions
|
@ -260,7 +260,6 @@
|
|||
"log_auto_scroll_off": "Turn off automatic scrolling"
|
||||
},
|
||||
"protected": {
|
||||
"review": "Review changes",
|
||||
"awaits": "This pipeline is awaiting approval by a maintainer!",
|
||||
"approve": "Approve",
|
||||
"decline": "Decline",
|
||||
|
|
|
@ -34,13 +34,6 @@
|
|||
<Icon name="status-blocked" class="w-16 h-16" />
|
||||
<span class="text-xl">{{ $t('repo.pipeline.protected.awaits') }}</span>
|
||||
<div v-if="repoPermissions.push" class="flex gap-2 flex-wrap items-center justify-center">
|
||||
<Button
|
||||
color="blue"
|
||||
:start-icon="forge ?? 'repo'"
|
||||
:text="$t('repo.pipeline.protected.review')"
|
||||
:to="pipeline.forge_url"
|
||||
:title="message"
|
||||
/>
|
||||
<Button
|
||||
color="green"
|
||||
:text="$t('repo.pipeline.protected.approve')"
|
||||
|
@ -90,9 +83,7 @@ import PipelineLog from '~/components/repo/pipeline/PipelineLog.vue';
|
|||
import PipelineStepList from '~/components/repo/pipeline/PipelineStepList.vue';
|
||||
import useApiClient from '~/compositions/useApiClient';
|
||||
import { useAsyncAction } from '~/compositions/useAsyncAction';
|
||||
import useConfig from '~/compositions/useConfig';
|
||||
import useNotifications from '~/compositions/useNotifications';
|
||||
import usePipeline from '~/compositions/usePipeline';
|
||||
import { Pipeline, PipelineStep, Repo, RepoPermissions } from '~/lib/api/types';
|
||||
import { findStep } from '~/utils/helpers';
|
||||
|
||||
|
@ -156,9 +147,6 @@ const selectedStepId = computed({
|
|||
},
|
||||
});
|
||||
|
||||
const { forge } = useConfig();
|
||||
const { message } = usePipeline(pipeline);
|
||||
|
||||
const selectedStep = computed(() => findStep(pipeline.value.workflows || [], selectedStepId.value || -1));
|
||||
|
||||
const { doSubmit: approvePipeline, isLoading: isApprovingPipeline } = useAsyncAction(async () => {
|
||||
|
|
Loading…
Reference in a new issue