Răsfoiți Sursa

HUE-7467 [frontend] Fix missing subtitle for the popovers

Enrico Berti 8 ani în urmă
părinte
comite
ba615ae1f7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      desktop/core/src/desktop/templates/context_popover.mako

+ 1 - 1
desktop/core/src/desktop/templates/context_popover.mako

@@ -409,7 +409,7 @@ from metadata.conf import has_navigator
       <div class="hue-popover-arrow" data-bind="style: { 'margin-left': leftAdjust() + 'px',  'margin-top': topAdjust() + 'px' }"></div>
       <div class="hue-popover-arrow" data-bind="style: { 'margin-left': leftAdjust() + 'px',  'margin-top': topAdjust() + 'px' }"></div>
       <div class="hue-popover-title" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 30px;">
       <div class="hue-popover-title" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 30px;">
         <i class="fa muted" data-bind="css: iconClass" style="margin-top: 3px"></i> <span style="padding-left: 4px;" data-bind="text: title"></span>
         <i class="fa muted" data-bind="css: iconClass" style="margin-top: 3px"></i> <span style="padding-left: 4px;" data-bind="text: title"></span>
-        <!-- ko if: subtitle -->
+        <!-- ko if: typeof subtitle !== 'undefined' && subtitle -->
         <span class="muted" style="padding-left: 4px;" data-bind="html: subtitle"></span>
         <span class="muted" style="padding-left: 4px;" data-bind="html: subtitle"></span>
         <!-- /ko -->
         <!-- /ko -->
         <div style="position: absolute; right: 6px; top: 8px;">
         <div style="position: absolute; right: 6px; top: 8px;">