You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<h1 mat-dialog-title>Add a Repository</h1>
|
|
<div mat-dialog-content>
|
|
<app-repository-form #repoForm></app-repository-form>
|
|
</div>
|
|
<div class="dialog-buttons" mat-dialog-actions>
|
|
<button (click)="closeDialog()" color="accent" mat-stroked-button>Cancel</button>
|
|
<button (click)="addRepository()"
|
|
*ngIf="repoForm.formGroup.get('repositoryType')?.value === 'remote' || repoForm.localRepoExists"
|
|
[disabled]="!repoForm.formGroup.valid"
|
|
color="primary"
|
|
mat-flat-button
|
|
matTooltip="Add the existing repository">Add
|
|
</button>
|
|
<button (click)="this.initLocalRepository()"
|
|
*ngIf="repoForm.formGroup.get('repositoryType')?.value === 'local' && !repoForm.localRepoExists"
|
|
[disabled]="!repoForm.formGroup.valid"
|
|
color="accent"
|
|
mat-flat-button
|
|
matTooltip="Initialize the repository in the specified path">Init
|
|
</button>
|
|
<button (click)="repoForm.checkRepositoryStatus()"
|
|
*ngIf="repoForm.formGroup.get('repositoryType')?.value === 'remote'"
|
|
[disabled]="!repoForm.formGroup.valid"
|
|
class="check-connection-button"
|
|
mat-stroked-button>Check Connection
|
|
</button>
|
|
</div>
|