ui: showSignInDialog if react when not loggedin

This commit is contained in:
undefined committed 2022-03-19 11:54:48 +08:00
1 parent fa554e58bf
commit d088227211
3 files changed
+11 -5

No files matched your search

+4 -4
View File
@@ -5,8 +5,8 @@ export class Page {
autoload = false;
afterLoading?: callback;
beforeLoading?: callback;
constructor(pagename: string | string[], afterLoading: callback, beforeLoading: callback);
constructor(pagename: string | string[], moduleName: string, afterLoading: callback, beforeLoading: callback);
constructor(pagename: string | string[], afterLoading?: callback, beforeLoading?: callback);
constructor(pagename: string | string[], moduleName: string, afterLoading?: callback, beforeLoading?: callback);
constructor(pagename: string | string[], ...args: any[]);
constructor(public name: string | string[], ...args: any[]) {
if (typeof args[0] === 'string') {
@@ -40,8 +40,8 @@ export class Page {
export class NamedPage extends Page { }
export class AutoloadPage extends Page {
constructor(pagename: string | string[], afterLoading: callback, beforeLoading: callback);
constructor(pagename: string | string[], moduleName: string, afterLoading: callback, beforeLoading: callback);
constructor(pagename: string | string[], afterLoading?: callback, beforeLoading?: callback);
constructor(pagename: string | string[], moduleName: string, afterLoading?: callback, beforeLoading?: callback);
constructor(pagename: string | string[], ...args: any[]) {
super(pagename, ...args);
this.autoload = true;