Skip to content

Commit

Permalink
Show full name of asset in search page.
Browse files Browse the repository at this point in the history
Change-Id: I824473102eaf470ded96033f8801808a731c6412
  • Loading branch information
theodab committed Aug 8, 2019
1 parent f24c4a7 commit b8628b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/asset_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ shakaDemo.AssetCard = class {
this.card_.appendChild(titleDiv);
const titleText = document.createElement('h2');
titleText.classList.add('mdl-card__title-text');
titleText.textContent = asset.shortName || asset.name;
titleText.textContent =
isFeatured ? (asset.shortName || asset.name) : asset.name;
titleDiv.appendChild(titleText);

if (asset.iconUri) {
Expand Down

0 comments on commit b8628b5

Please sign in to comment.