refs #2508. Force push git option

pull/39/head
Manuel Aranda Rosales 2025-09-03 08:31:05 +02:00
parent a87ea1bcfb
commit 34243e568a
2 changed files with 9 additions and 0 deletions

View File

@ -124,6 +124,13 @@
</div>
</div>
<!-- Checkbox para forzar push cuando estamos en modo modificar imagen git -->
<div class="force-push-container" *ngIf="imageType === 'git' && hasValidGitData">
<mat-checkbox [(ngModel)]="forcePush" class="force-push-checkbox">
Opción 'Forzar push'
</mat-checkbox>
</div>
<div class="repository-header" *ngIf="!hasValidGitData">
<button *ngIf="imageType === 'git'"
class="create-repository-button"

View File

@ -56,6 +56,7 @@ export class CreateClientImageComponent implements OnInit{
isDestinationBranchEditable: boolean = false;
repositoryNotFound: boolean = false;
newlyCreatedRepository: any = null;
forcePush: boolean = false; // Nueva propiedad para el checkbox de forzar push
get hasValidGitData(): boolean {
return this.gitData && this.gitData.repo && this.gitData.branch;
@ -406,6 +407,7 @@ export class CreateClientImageComponent implements OnInit{
gitRepository: gitRepoName,
originalBranch: originBranch,
destinationBranch: this.destinationBranch,
options: this.forcePush,
queue: result
};
}