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
+3 -2
View File
@@ -50,7 +50,7 @@ export class ServerConsentView extends TemplateView {
t.form({action: "#", onSubmit: evt => this._onSubmit(evt)}, [
t.mapView(vm => vm.showSelectServer, show => show ? new ServerOptions(vm) : null),
t.div({className: "actions"}, [
t.label([t.input({type: "checkbox", name: "persist"}), "Ask every time"]),
t.label([t.input({type: "checkbox", name: "askEveryTime"}), "Ask every time"]),
t.input({type: "submit", value: "Continue", className: "primary fullwidth"})
])
])
@@ -59,7 +59,8 @@ export class ServerConsentView extends TemplateView {
_onSubmit(evt) {
evt.preventDefault();
this.value.continueWithSelection();
const {askEveryTime} = evt.target.elements;
this.value.continueWithSelection(askEveryTime.checked);
}
}