Fix(oggui): keep repository list modal open after deletion
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
oggui-debian-package/pipeline/head This commit looks good Details

pull/97/head
Juan Manuel Bardallo 2026-07-28 12:50:57 +02:00
parent ebc09f8ca5
commit b3a59b659f
1 changed files with 6 additions and 1 deletions

View File

@ -110,6 +110,11 @@ export class ShowGitCommitsComponent implements OnInit{
if (this.repositories.length > 0) {
this.selectedRepository = this.repositories[0];
this.loadBranches();
} else {
this.selectedRepository = '';
this.branches = [];
this.selectedBranch = '';
this.dataSource.data = [];
}
},
error => {
@ -344,7 +349,7 @@ export class ShowGitCommitsComponent implements OnInit{
this.http.post(`${this.baseUrl}/image-repositories/server/git/${this.data.repositoryUuid}/delete`, payload).subscribe({
next: () => {
this.toastService.success(this.translate.instant('repositoryDeletedSuccessfully'));
this.dialogRef.close(true);
this.loadRepositories();
},
error: (error) => {
console.error(this.translate.instant('errorDeletingRepository1'), error);