[metastore] Only enable editing of database descriptions if navigator is enabled
@@ -432,6 +432,7 @@ ${ components.menubar(is_embeddable) }
<script type="text/html" id="metastore-tables">
<div class="row-fluid">
% if has_write_access:
+ <!-- ko if: $root.navigatorEnabled() -->
<div style="position: relative;" class="show-inactive-on-hover margin-bottom-20">
<div style="position:absolute; left: 10px; top: 2px;"><a class="inactive-action pointer toggle-editable" title="${ _('Edit the description') }"><i class="fa fa-pencil vertical-align-top"></i></a></div>
<div style="margin-left: 25px;" data-bind="toggleOverflow: { height: 24 }">
@@ -440,6 +441,10 @@ ${ components.menubar(is_embeddable) }
</div>
</div>
</div>
+ <!-- /ko -->
+ <!-- ko ifnot: $root.navigatorEnabled() -->
+ <div data-bind="text: comment, attr:{ title: comment }" class="table-description"></div>
+ <!-- /ko -->
% else:
<div data-bind="text: comment, attr:{ title: comment }" class="table-description"></div>
%endif
