Skip to content

Commit

Permalink
fix(gv-promote): resolve blink when loading new data
Browse files Browse the repository at this point in the history
fix #313
  • Loading branch information
gcusnieux authored and ytvnr committed Mar 25, 2021
1 parent 3c6fe56 commit 684a954
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/molecules/gv-promote.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ export class GvPromote extends ItemResource(LitElement) {
}

render() {
if (this._invisible) {
return '';
}
return html`<div class="container">
<div class="${classMap({ skeleton: this._skeleton, image: true })}">${this._renderImage()}</div>
<div class="content">
Expand All @@ -180,7 +183,7 @@ export class GvPromote extends ItemResource(LitElement) {
</p>
<div class=${classMap({ skeleton: this._skeleton, infos: true })}>${this._renderMetricsWithRating()}</div>
<div class="labels">${this._renderLabels(true)}</div>
<gv-button ?skeleton=${this._skeleton} .href="${this.href}" @click="${this._onClick}" .skeleton=${this._skeleton}
<gv-button ?skeleton=${this._skeleton} .href="${this.href}" @click="${this._onClick}"
>${i18n('gv-promote.view')}</gv-button
>`}
`}
Expand Down

0 comments on commit 684a954

Please sign in to comment.