more tweaking to server consent flow and changing servers on preview

This commit is contained in:
Bruno Windels
2020-12-04 13:59:52 +01:00
parent 4d57b3c5da
commit aa62f1fedc
11 changed files with 88 additions and 32 deletions
+4 -1
View File
@@ -29,6 +29,9 @@ export class RootViewModel extends ViewModel {
this.openLinkViewModel = null;
this.createLinkViewModel = null;
this.loadServerPolicyViewModel = null;
this.preferences.on("canClear", () => {
this.emitChange();
});
}
_updateChildVMs(oldLink) {
@@ -37,7 +40,7 @@ export class RootViewModel extends ViewModel {
if (!oldLink || !oldLink.equals(this.link)) {
this.openLinkViewModel = new OpenLinkViewModel(this.childOptions({
link: this.link,
clients: createClients()
clients: createClients(),
}));
}
} else {