mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-03 13:31:22 +01:00
fix the issue about project name set private/pubulic alert problem
This commit is contained in:
parent
8ec00c479e
commit
900837326a
@ -124,7 +124,6 @@ export class ProjectComponent implements OnInit, OnDestroy {
|
||||
|
||||
getProjects(name?: string, isPublic?: number, page?: number, pageSize?: number): void {
|
||||
this.loading = true;
|
||||
|
||||
this.projectService
|
||||
.listProjects(name, isPublic, page, pageSize)
|
||||
.subscribe(
|
||||
@ -184,7 +183,11 @@ export class ProjectComponent implements OnInit, OnDestroy {
|
||||
response => {
|
||||
this.messageHandlerService.showSuccess('PROJECT.TOGGLED_SUCCESS');
|
||||
this.statisticHandler.refresh();
|
||||
if (this.currentFilteredType === 0) {
|
||||
this.getProjects();
|
||||
} else {
|
||||
this.getProjects("", this.currentFilteredType - 1);
|
||||
}
|
||||
},
|
||||
error => this.messageHandlerService.handleError(error)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user