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.5 KiB
HTML
28 lines
1.5 KiB
HTML
<h1 mat-dialog-title>Edit {{this.selectedRepository.name}}</h1>
|
|
<div mat-dialog-content>
|
|
<app-repository-form #repoForm
|
|
[address]="selectedRepository.address ?? ''"
|
|
[name]="selectedRepository.name"
|
|
[path]="selectedRepository.path ?? ''"
|
|
[repositoryType]="selectedRepository.local? 'local' : 'remote'"
|
|
[validateNameDuplicate]="false"></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="Save the existing repository">Save
|
|
</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>
|