This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch 
4287-migrate-angular-ui-from-constructor-injection-to-inject
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit a9f34c46e192bfcf725e48ea390508516ef11e50
Author: Philipp Zehnder <[email protected]>
AuthorDate: Tue Mar 24 09:59:32 2026 +0100

    migrate dashboard shared services to inject()
---
 ui/src/app/dashboard-shared/services/dashboard.service.ts | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/ui/src/app/dashboard-shared/services/dashboard.service.ts 
b/ui/src/app/dashboard-shared/services/dashboard.service.ts
index efa9ba8ab1..7a27d70ebc 100644
--- a/ui/src/app/dashboard-shared/services/dashboard.service.ts
+++ b/ui/src/app/dashboard-shared/services/dashboard.service.ts
@@ -19,15 +19,13 @@
 import { Dashboard } from '@streampipes/platform-services';
 import { EditDashboardDialogComponent } from 
'../../dashboard/dialogs/edit-dashboard/edit-dashboard-dialog.component';
 import { DialogService, PanelType } from '@streampipes/shared-ui';
-import { Injectable } from '@angular/core';
+import { Injectable, inject } from '@angular/core';
 import { TranslateService } from '@ngx-translate/core';
 
 @Injectable({ providedIn: 'root' })
 export class DataExplorerDashboardService {
-    constructor(
-        private dialogService: DialogService,
-        private translateService: TranslateService,
-    ) {}
+    private dialogService = inject(DialogService);
+    private translateService = inject(TranslateService);
 
     openDashboardModificationDialog(createMode: boolean, dashboard: Dashboard) 
{
         return this.dialogService.open(EditDashboardDialogComponent, {

Reply via email to