mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Merge pull request #7214 from jwangyangls/fixHelmChartIssue
moveHelmChartIssue
This commit is contained in:
commit
542c460e3d
@ -40,7 +40,7 @@ registerLocaleData(localeFr, 'fr-fr');
|
||||
export function initConfig(configService: AppConfigService, skinableService: SkinableConfig) {
|
||||
return () => {
|
||||
skinableService.getCustomFile();
|
||||
configService.load();
|
||||
configService.load().subscribe();
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -283,7 +283,7 @@ export class ChartVersionComponent implements OnInit {
|
||||
ConfirmationTargets.HELM_CHART_VERSION,
|
||||
ConfirmationButtons.DELETE_CANCEL
|
||||
);
|
||||
this.confirmationDialog.openMessage(message);
|
||||
this.confirmationDialog.open(message);
|
||||
let hnd = setInterval(() => this.cdr.markForCheck(), 100);
|
||||
setTimeout(() => clearInterval(hnd), 2000);
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ export class HelmChartComponent implements OnInit {
|
||||
ConfirmationTargets.HELM_CHART,
|
||||
ConfirmationButtons.DELETE_CANCEL
|
||||
);
|
||||
this.confirmationDialog.openMessage(message);
|
||||
this.confirmationDialog.open(message);
|
||||
}
|
||||
|
||||
confirmDeletion(message: ConfirmationAcknowledgement) {
|
||||
|
@ -55,18 +55,17 @@ export class ConfirmationDialogComponent implements OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
open(): void {
|
||||
this.opened = true;
|
||||
}
|
||||
openMessage(msg: ConfirmationMessage): void {
|
||||
this.dialogTitle = msg.title;
|
||||
this.message = msg;
|
||||
this.translate.get(this.dialogTitle).subscribe((res: string) => this.dialogTitle = res);
|
||||
this.translate.get(msg.message, { 'param': msg.param }).subscribe((res: string) => {
|
||||
this.dialogContent = res;
|
||||
});
|
||||
// Open dialog
|
||||
this.buttons = msg.buttons;
|
||||
open(msg?: ConfirmationMessage): void {
|
||||
if (msg) {
|
||||
this.dialogTitle = msg.title;
|
||||
this.message = msg;
|
||||
this.translate.get(this.dialogTitle).subscribe((res: string) => this.dialogTitle = res);
|
||||
this.translate.get(msg.message, { 'param': msg.param }).subscribe((res: string) => {
|
||||
this.dialogContent = res;
|
||||
});
|
||||
// Open dialog
|
||||
this.buttons = msg.buttons;
|
||||
}
|
||||
this.opened = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user