use url to go back in login view

This commit is contained in:
Bruno Windels 2020-10-09 17:03:24 +02:00
parent 35e85c55e0
commit 33627edcb3

View File

@ -51,9 +51,9 @@ export class LoginView extends TemplateView {
t.div({className: "form-row"}, [t.label({for: "homeserver"}, vm.i18n`Homeserver`), homeserver]),
t.mapView(vm => vm.loadViewModel, loadViewModel => loadViewModel ? new SessionLoadStatusView(loadViewModel) : null),
t.div({className: "button-row"}, [
t.button({
className: "styled secondary",
onClick: () => vm.cancel(), disabled
t.a({
className: "button styled secondary",
href: vm.cancelUrl
}, [vm.i18n`Go Back`]),
t.button({
className: "styled primary",