refs #2508. Force push git option
parent
a87ea1bcfb
commit
34243e568a
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue