make it into a link

This commit is contained in:
Bruno Windels 2021-08-26 10:46:04 +02:00
parent 725a7efb3c
commit 55d60cb368

View File

@ -35,8 +35,7 @@ export class RootView extends TemplateView {
t.li(externalLink(t, "https://github.com/matrix-org/matrix.to/tree/main/src/open/clients", "Add your app")), t.li(externalLink(t, "https://github.com/matrix-org/matrix.to/tree/main/src/open/clients", "Add your app")),
t.li({className: {hidden: vm => !vm.hasPreferences}}, t.li({className: {hidden: vm => !vm.hasPreferences}},
t.button({className: "text", onClick: () => vm.clearPreferences()}, "Clear preferences")), t.button({className: "text", onClick: () => vm.clearPreferences()}, "Clear preferences")),
t.li( t.li(t.a({href: "#/disclaimer/"}, "Disclaimer")),
t.button({className: "text", onClick: () => vm.openLink("/#/disclaimer/")}, "Disclaimer")),
]) ])
]) ])
]); ]);