mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Appease the linter
This commit is contained in:
parent
587c3611d3
commit
88b155d81f
@ -168,7 +168,7 @@ export class DimensionBigBlueButtonService {
|
||||
url: string,
|
||||
qs?: any,
|
||||
body?: any,
|
||||
followRedirect: boolean = true,
|
||||
followRedirect = true,
|
||||
): Promise<any> {
|
||||
// Query a URL, expecting an HTML response in return
|
||||
return new Promise((resolve, reject) => {
|
||||
|
@ -44,7 +44,7 @@ export class AdminSlackBridgeManageSelfhostedComponent implements ModalComponent
|
||||
});
|
||||
} else {
|
||||
this.slackApi.updateSelfhosted(this.bridgeId, this.provisionUrl).then(() => {
|
||||
this.translate.get('Slack bridge updated').subscribe((res: string) => {this.toaster.pop("success", res);});
|
||||
this.translate.get('Slack bridge updated').subscribe((res: string) => this.toaster.pop("success", res));
|
||||
this.dialog.close();
|
||||
}).catch(err => {
|
||||
console.error(err);
|
||||
|
@ -20,7 +20,9 @@ export class PageHeaderComponent {
|
||||
while (currentRoute.children.length > 0) {
|
||||
let children = currentRoute.children;
|
||||
children.forEach(route => {
|
||||
if (route.snapshot.data['breadcrumb']){this.translate.get(route.snapshot.data['breadcrumb']).subscribe((res: string) => {route.snapshot.data['breadcrumb'] = res}); }
|
||||
if (route.snapshot.data['breadcrumb']) {
|
||||
this.translate.get(route.snapshot.data['breadcrumb']).subscribe((res: string) => {route.snapshot.data['breadcrumb'] = res});
|
||||
}
|
||||
currentRoute = route;
|
||||
url += "/" + route.snapshot.url.map(s => s.path).join("/");
|
||||
if (route.outlet !== PRIMARY_OUTLET) return;
|
||||
|
@ -43,7 +43,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement
|
||||
/**
|
||||
* Whether we are currently in a meeting
|
||||
*/
|
||||
private inMeeting: boolean = false;
|
||||
private inMeeting = false;
|
||||
|
||||
/**
|
||||
* The URL to embed into the iframe
|
||||
@ -95,7 +95,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement
|
||||
ScalarWidgetApi.sendSetAlwaysOnScreen(true);
|
||||
}
|
||||
|
||||
public joinConference(updateStatusMessage: boolean = true) {
|
||||
public joinConference(updateStatusMessage = true) {
|
||||
if (updateStatusMessage) {
|
||||
// Inform the user that we're loading their meeting
|
||||
this.statusMessage = "Joining conference...";
|
||||
@ -109,7 +109,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement
|
||||
this.bigBlueButtonApi.joinMeeting(this.conferenceUrl, joinName).then((response) => {
|
||||
if ("errorCode" in response) {
|
||||
// This is an instance of ApiError
|
||||
if (response.errorCode == "WAITING_FOR_MEETING_START") {
|
||||
if (response.errorCode === "WAITING_FOR_MEETING_START") {
|
||||
// The meeting hasn't started yet
|
||||
this.statusMessage = "Waiting for conference to start...";
|
||||
|
||||
|
@ -5,7 +5,7 @@ import {
|
||||
transition,
|
||||
trigger
|
||||
} from '@angular/animations';
|
||||
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from "@angular/core";
|
||||
import { AfterViewInit, ChangeDetectorRef, Component, OnDestroy, OnInit } from "@angular/core";
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { CapableWidget, WIDGET_API_VERSION_OPENID } from "../capable-widget";
|
||||
import { fromEvent } from 'rxjs';
|
||||
@ -45,7 +45,7 @@ import { WIDGET_STICKER_PICKER } from "../../shared/models/widget";
|
||||
]
|
||||
})
|
||||
|
||||
export class StickerPickerWidgetWrapperComponent extends CapableWidget implements OnInit, OnDestroy {
|
||||
export class StickerPickerWidgetWrapperComponent extends CapableWidget implements OnInit, OnDestroy, AfterViewInit {
|
||||
|
||||
public isLoading = true;
|
||||
public isListVisible = true;
|
||||
|
Loading…
Reference in New Issue
Block a user