mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Make sure the auth error message is shown
This commit is contained in:
parent
a249d6dd68
commit
31c565abc9
@ -38,12 +38,16 @@ export class StickerPickerWidgetWrapperComponent extends CapableWidget implement
|
|||||||
if (!params.widgetId) {
|
if (!params.widgetId) {
|
||||||
console.error("No widgetId query parameter");
|
console.error("No widgetId query parameter");
|
||||||
this.authError = true;
|
this.authError = true;
|
||||||
|
this.isLoading = false;
|
||||||
} else {
|
} else {
|
||||||
ScalarWidgetApi.widgetId = params.widgetId;
|
ScalarWidgetApi.widgetId = params.widgetId;
|
||||||
}
|
}
|
||||||
|
|
||||||
SessionStorage.scalarToken = token;
|
if (!this.authError) {
|
||||||
this.authError = !token;
|
SessionStorage.scalarToken = token;
|
||||||
|
this.authError = !token;
|
||||||
|
this.isLoading = !this.authError;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public ngOnInit() {
|
public ngOnInit() {
|
||||||
@ -77,6 +81,7 @@ export class StickerPickerWidgetWrapperComponent extends CapableWidget implement
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
this.authError = true;
|
this.authError = true;
|
||||||
|
this.isLoading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user