diff --git a/web/app/configs/widget/bigbluebutton/bigbluebutton.widget.component.ts b/web/app/configs/widget/bigbluebutton/bigbluebutton.widget.component.ts index ac92217..c00da9e 100644 --- a/web/app/configs/widget/bigbluebutton/bigbluebutton.widget.component.ts +++ b/web/app/configs/widget/bigbluebutton/bigbluebutton.widget.component.ts @@ -4,6 +4,7 @@ import { Component } from "@angular/core"; import { FE_BigBlueButtonWidget } from "../../../shared/models/integration"; import { SessionStorage } from "../../../shared/SessionStorage"; import * as url from "url"; +import { TranslateService } from "@ngx-translate/core"; @Component({ templateUrl: "bigbluebutton.widget.component.html", @@ -14,8 +15,8 @@ import * as url from "url"; export class BigBlueButtonConfigComponent extends WidgetComponent { private bigBlueButtonWidget: FE_BigBlueButtonWidget = SessionStorage.editIntegration; - constructor() { - super(WIDGET_BIGBLUEBUTTON, "BigBlueButton Conference", DISABLE_AUTOMATIC_WRAPPING); + constructor(public translate: TranslateService) { + super(WIDGET_BIGBLUEBUTTON, "BigBlueButton Conference", DISABLE_AUTOMATIC_WRAPPING, translate); } protected OnWidgetsDiscovered(widgets: EditableWidget[]) { diff --git a/web/app/configs/widget/whiteboard/whiteboard.widget.component.ts b/web/app/configs/widget/whiteboard/whiteboard.widget.component.ts index 506a999..e983c10 100644 --- a/web/app/configs/widget/whiteboard/whiteboard.widget.component.ts +++ b/web/app/configs/widget/whiteboard/whiteboard.widget.component.ts @@ -5,6 +5,7 @@ import * as url from "url"; import { SessionStorage } from "../../../shared/SessionStorage"; import { NameService } from "../../../shared/services/name.service"; import { FE_WhiteBoardWidget } from "../../../shared/models/integration"; +import { TranslateService } from "@ngx-translate/core"; @Component({ templateUrl: "whiteboard.widget.component.html", @@ -13,8 +14,8 @@ import { FE_WhiteBoardWidget } from "../../../shared/models/integration"; export class WhiteboardWidgetComponent extends WidgetComponent { private whiteBoardWidget: FE_WhiteBoardWidget = SessionStorage.editIntegration; - constructor(private nameService: NameService) { - super(WIDGET_WHITEBOARD, "Whiteboard", "generic", "whiteboard", "boardName"); + constructor(private nameService: NameService, public translate: TranslateService) { + super(WIDGET_WHITEBOARD, "Whiteboard", "generic", translate, "whiteboard", "boardName"); } protected OnWidgetsDiscovered(widgets: EditableWidget[]): void { console.log(widgets); diff --git a/web/app/widget-wrappers/bigbluebutton/bigbluebutton.component.ts b/web/app/widget-wrappers/bigbluebutton/bigbluebutton.component.ts index a423e99..52c48bf 100644 --- a/web/app/widget-wrappers/bigbluebutton/bigbluebutton.component.ts +++ b/web/app/widget-wrappers/bigbluebutton/bigbluebutton.component.ts @@ -7,6 +7,7 @@ import { CapableWidget } from "../capable-widget"; import { DomSanitizer, SafeUrl } from "@angular/platform-browser"; import { BigBlueButtonApiService } from "../../shared/services/integrations/bigbluebutton-api.service"; import { FE_BigBlueButtonJoin } from "../../shared/models/integration"; +import { TranslateService } from "@ngx-translate/core"; @Component({ selector: "my-bigbluebutton-widget-wrapper", @@ -52,12 +53,13 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement constructor(activatedRoute: ActivatedRoute, private bigBlueButtonApi: BigBlueButtonApiService, private widgetApi: WidgetApiService, - private sanitizer: DomSanitizer) { + private sanitizer: DomSanitizer, + public translate: TranslateService) { super(); this.supportsAlwaysOnScreen = true; let params: any = activatedRoute.snapshot.queryParams; - + console.log("BigBlueButton: Given greenlight url: " + params.conferenceUrl); this.conferenceUrl = params.conferenceUrl; @@ -71,7 +73,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement public ngOnInit() { super.ngOnInit(); } - + public onIframeLoad() { if (this.inMeeting) { // The meeting has ended and we've come back full circle