Make the tiles link to details

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-22 19:58:04 +05:30
parent 65b1a1958a
commit 4784bcc590

View file

@ -3,9 +3,10 @@ import {AvatarView} from "../../AvatarView.js";
export class MemberTileView extends TemplateView {
render(t, vm) {
return t.li({ className: "MemberTileView" }, [
t.view(new AvatarView(vm, 32)),
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
]);
return t.li({ className: "MemberTileView" }, t.a({href: vm.detailsUrl}, [
t.view(new AvatarView(vm, 32)),
t.div({ className: "MemberTileView_name" }, (vm) => vm.name),
])
);
}
}