From 23225ec10a6d50d1acc39498229b943c46ce20a6 Mon Sep 17 00:00:00 2001 From: Manuel Tauber Date: Wed, 29 May 2024 11:25:26 +0200 Subject: [PATCH] t --- frontend/src/app/ntt-gantt/ntt-gantt.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts index 199016c..c95589d 100644 --- a/frontend/src/app/ntt-gantt/ntt-gantt.component.ts +++ b/frontend/src/app/ntt-gantt/ntt-gantt.component.ts @@ -20,6 +20,7 @@ import { RenamePresetDialogComponent } from '../rename-preset-dialog/rename-pres import { DeletePresetDialogComponent } from '../delete-preset-dialog/delete-preset-dialog.component'; import { SavePresetUnderDialogComponent } from '../save-preset-under-dialog/save-preset-under-dialog.component'; import { Location } from '@angular/common'; +import { environment } from 'src/environments/environment'; export const MY_DATE_FORMATS = { @@ -1151,9 +1152,9 @@ export class NttGanttComponent implements OnInit { if (args.dialogModel) { args.cancel = true; if (args.rowData.taskData.resources[0].state == 0) { - window.open("https://itsm-test-neu-smartit.asfinag.at/smartit/app/#/paketPV/" + args.rowData.taskData.resources[0].packageInstanceId, "_blank"); + window.open("https://itsm-"+environment+"-neu-smartit.asfinag.at/smartit/app/#/paketPV/" + args.rowData.taskData.resources[0].packageInstanceId, "_blank"); } else { - window.open("https://itsm-dev-neu-smartit.asfinag.at/smartit/app/#/changePV/" + args.rowData.taskData.resources[0].packageInstanceId, "_blank"); + window.open("https://itsm-"+environment+"-neu-smartit.asfinag.at/smartit/app/#/changePV/" + args.rowData.taskData.resources[0].packageInstanceId, "_blank"); } this.ganttDefault.hideSpinner(); } else {