From 4525f9678cb3d7b865ea9b605117e29c1391230b Mon Sep 17 00:00:00 2001 From: Nevio Di Gennaro Date: Tue, 19 Nov 2024 11:00:20 +0100 Subject: [PATCH] change onclick to click because onclick doesnt work --- .../application-top-bar/application-top-bar.component.html | 2 +- .../application-top-bar/application-top-bar.component.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/application-top-bar/application-top-bar.component.html b/frontend/src/app/components/application-top-bar/application-top-bar.component.html index 2bf4a58e72..5f70f8e11a 100644 --- a/frontend/src/app/components/application-top-bar/application-top-bar.component.html +++ b/frontend/src/app/components/application-top-bar/application-top-bar.component.html @@ -26,7 +26,7 @@ id="hilfeButton" [attr.data-testId]="'help-button'" class="topBarEntry btn" - onclick="window.open(supportSiteUrl, '_blank')" + (click)="window.open(supportSiteUrl, '_blank')" > Hilfe diff --git a/frontend/src/app/components/application-top-bar/application-top-bar.component.ts b/frontend/src/app/components/application-top-bar/application-top-bar.component.ts index 2677f1cadb..b4e5d68af8 100644 --- a/frontend/src/app/components/application-top-bar/application-top-bar.component.ts +++ b/frontend/src/app/components/application-top-bar/application-top-bar.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core'; import { OAuthService } from 'angular-oauth2-oidc'; -import { BehaviorSubject, Subscription } from 'rxjs'; +import { BehaviorSubject, Subscription, window } from 'rxjs'; import { ConfigService } from '../../services/config.service'; import { NavigationEnd, Router } from '@angular/router'; import { UserService } from '../../services/user.service'; @@ -61,4 +61,6 @@ export class ApplicationTopBarComponent implements OnInit, OnDestroy { } }); } + + protected readonly window = window; }