From 2228cb14644cf86d1ce5c7c7a5a122d08ad6e5c5 Mon Sep 17 00:00:00 2001 From: Viktor Gullmark Date: Sat, 14 Jul 2018 12:43:36 +0200 Subject: [PATCH] Fix for openLink missing --- .../char-profile/char-ladder/char-ladder.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ExilePartyClient/src/app/authorize/components/char-profile/char-ladder/char-ladder.component.ts b/ExilePartyClient/src/app/authorize/components/char-profile/char-ladder/char-ladder.component.ts index 3e314025..d52f6c5e 100644 --- a/ExilePartyClient/src/app/authorize/components/char-profile/char-ladder/char-ladder.component.ts +++ b/ExilePartyClient/src/app/authorize/components/char-profile/char-ladder/char-ladder.component.ts @@ -5,6 +5,7 @@ import { AnalyticsService } from '../../../../shared/providers/analytics.service import { PartyService } from '../../../../shared/providers/party.service'; import { LadderTableComponent } from '../../ladder-table/ladder-table.component'; import { LadderService } from '../../../../shared/providers/ladder.service'; +import { ElectronService } from '../../../../shared/providers/electron.service'; @Component({ selector: 'app-char-ladder', @@ -26,7 +27,8 @@ export class CharLadderComponent implements OnInit { fb: FormBuilder, private partyService: PartyService, private analyticsService: AnalyticsService, - private ladderService: LadderService + private ladderService: LadderService, + private electronService: ElectronService ) { this.form = fb.group({ searchText: [''] @@ -40,4 +42,7 @@ export class CharLadderComponent implements OnInit { ngOnInit() { this.analyticsService.sendScreenview('/authorized/party/player/ladder'); } + openLink(link: string) { + this.electronService.shell.openExternal(link); + } }