server consent improvements

This commit is contained in:
Bruno Windels 2020-12-07 16:20:17 +01:00
parent 42190df040
commit e9224c4d66
2 changed files with 7 additions and 2 deletions

View File

@ -70,7 +70,7 @@ textarea {
font-style: normal; font-style: normal;
} }
button { button, input[type=submit] {
cursor: pointer; cursor: pointer;
} }

View File

@ -68,7 +68,12 @@ export class ServerConsentView extends TemplateView {
class ServerOptions extends TemplateView { class ServerOptions extends TemplateView {
render(t, vm) { render(t, vm) {
const options = vm.servers.map(server => { 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([ options.push(t.div({className: "other"}, t.label([
t.input({type: "radio", name: "selectedServer", value: "other"}), t.input({type: "radio", name: "selectedServer", value: "other"}),