more preview polish
This commit is contained in:
@@ -28,7 +28,7 @@ class LoadingPreviewView extends TemplateView {
|
||||
render(t, vm) {
|
||||
return t.div({className: "PreviewView"}, [
|
||||
t.div({className: "avatarContainer"}, t.div({className: "avatar loading"}, t.div({className: "spinner"}))),
|
||||
t.h1(vm => vm.identifier),
|
||||
t.h1(vm => vm.name),
|
||||
t.p({className: "identifier placeholder"}),
|
||||
t.div({className: {memberCount: true, loading: true, hidden: !vm.hasMemberCount}}, t.p({className: "placeholder"})),
|
||||
t.p({className: {topic: true, loading: true, hidden: !vm.hasTopic}}, [
|
||||
|
||||
@@ -27,9 +27,9 @@ export class PreviewViewModel extends ViewModel {
|
||||
this._link = link;
|
||||
this._consentedServers = consentedServers;
|
||||
this.loading = false;
|
||||
this.name = null;
|
||||
this.name = this._link.identifier;
|
||||
this.avatarUrl = null;
|
||||
this.identifier = this._link.identifier;
|
||||
this.identifier = null;
|
||||
this.memberCount = null;
|
||||
this.topic = null;
|
||||
this.previewDomain = null;
|
||||
|
||||
Reference in New Issue
Block a user