render back button in client list as left chevron

This commit is contained in:
Bruno Windels
2020-12-04 17:16:44 +01:00
parent 920a95296c
commit f538be6748
3 changed files with 33 additions and 2 deletions
+3 -2
View File
@@ -62,10 +62,11 @@ class AllClientsView extends TemplateView {
class ContinueWithClientView extends TemplateView {
render(t, vm) {
const backTitle = "Back to all clients";
return t.div({className: "ClientListView"}, [
t.h2([
`Continue with ${vm.clientViewModel.name} `,
t.button({onClick: () => vm.showAll()}, "Back")
t.button({className: "back", ["aria-label"]: backTitle, title: backTitle, onClick: () => vm.showAll()}),
t.span(`Continue with ${vm.clientViewModel.name}`)
]),
t.div({className: "list"}, t.view(new ClientView(vm.clientViewModel)))
]);