add basic preferences

This commit is contained in:
Bruno Windels
2020-12-01 12:06:37 +01:00
parent fcf1087eaf
commit c1bc2546fd
6 changed files with 80 additions and 15 deletions
+2
View File
@@ -27,6 +27,8 @@ export class RootView extends TemplateView {
t.ul({className: "links"}, [
t.li(externalLink(t, "https://github.com/matrix-org/matrix.to", "GitHub project")),
t.li(externalLink(t, "https://github.com/matrix-org/matrix.to/tree/main/src/clients", "Add your app")),
t.li({className: {hidden: vm => !vm.hasPreferences}},
t.button({className: "text", onClick: () => vm.clearPreferences()}, "Clear preferences")),
])
])
]);