From b8628b503259be61069e8e2646f4a406d6ad2333 Mon Sep 17 00:00:00 2001 From: Theodore Abshire Date: Thu, 8 Aug 2019 13:25:39 -0700 Subject: [PATCH] Show full name of asset in search page. Change-Id: I824473102eaf470ded96033f8801808a731c6412 --- demo/asset_card.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/asset_card.js b/demo/asset_card.js index a83c4b7708..247b89f7f1 100644 --- a/demo/asset_card.js +++ b/demo/asset_card.js @@ -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) {