From e9224c4d6651815c20c6eb50a760e9dd6388bda7 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 7 Dec 2020 16:20:17 +0100 Subject: [PATCH] server consent improvements --- css/main.css | 2 +- src/open/ServerConsentView.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/css/main.css b/css/main.css index a16404a..948fa38 100644 --- a/css/main.css +++ b/css/main.css @@ -70,7 +70,7 @@ textarea { font-style: normal; } -button { +button, input[type=submit] { cursor: pointer; } diff --git a/src/open/ServerConsentView.js b/src/open/ServerConsentView.js index 2acc1e7..00a873c 100644 --- a/src/open/ServerConsentView.js +++ b/src/open/ServerConsentView.js @@ -68,7 +68,12 @@ export class ServerConsentView extends TemplateView { class ServerOptions extends TemplateView { render(t, vm) { const options = vm.servers.map(server => { - return t.div(t.label([t.input({type: "radio", name: "selectedServer", value: server}), t.span(server)])) + return t.div(t.label([t.input({ + type: "radio", + name: "selectedServer", + value: server, + checked: server === vm.selectedServer + }), t.span(server)])) }); options.push(t.div({className: "other"}, t.label([ t.input({type: "radio", name: "selectedServer", value: "other"}),