add hosted by banner

This commit is contained in:
Bruno Windels
2021-02-04 17:07:47 +01:00
parent 573076c263
commit 8a23b9a49e
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ function renderInstructions(parts) {
export class ClientView extends TemplateView {
render(t, vm) {
return t.div({className: "ClientView"}, [
return t.div({className: {"ClientView": true, "isPreferred": vm => vm.hasPreferredWebInstance}}, [
... vm.hasPreferredWebInstance ? [t.div({className: "hostedBanner"}, vm.hostedByBannerLabel)] : [],
t.div({className: "header"}, [
t.div({className: "description"}, [
t.h3(vm.name),