Skip to content

Commit a7409d4

Browse files
authored
feat: skip repo-confirmation step for TEST environments (#777)
1 parent 01da266 commit a7409d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/app/components/dialogs/deploy-confirmation/deploy-confirmation.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
<br />
7676
}
7777

78-
<!-- Repository confirmation -->
79-
@if (environment().repository?.nameWithOwner) {
78+
<!-- ONLY show 'Repository confirmation' block if type !== 'TEST' -->
79+
@if (environment().type !== 'TEST' && environment().repository?.nameWithOwner) {
8080
<div class="mt-4 text-sm space-y-1">
8181
<p>
8282
To confirm, type <code class="font-semibold">{{ environment().repository?.nameWithOwner }}</code> below
@@ -103,7 +103,7 @@
103103
type="button"
104104
label="Deploy"
105105
class="ml-2"
106-
[disabled]="query.isPending() || (environment().repository?.nameWithOwner && repoConfirm !== environment().repository?.nameWithOwner)"
106+
[disabled]="query.isPending() || (environment().type !== 'TEST' && environment().repository?.nameWithOwner && repoConfirm !== environment().repository?.nameWithOwner)"
107107
(click)="onDeploy()"
108108
></button>
109109
</div>

0 commit comments

Comments
 (0)