浏览代码

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

Enrico Berti 8 年之前
父节点
当前提交
ba615ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  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-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>
-        <!-- ko if: subtitle -->
+        <!-- ko if: typeof subtitle !== 'undefined' && subtitle -->
         <span class="muted" style="padding-left: 4px;" data-bind="html: subtitle"></span>
         <!-- /ko -->
         <div style="position: absolute; right: 6px; top: 8px;">