SearchKit - Hide empty menus
authorcolemanw <coleman@civicrm.org>
Sun, 3 Dec 2023 18:32:19 +0000 (18:32 +0000)
committercolemanw <coleman@civicrm.org>
Sun, 3 Dec 2023 18:32:19 +0000 (18:32 +0000)
ext/search_kit/ang/crmSearchDisplay/colType/menu.html

index 2f790129d5fe52ce6132d904d657fd417a6c5243..d08e57c9d3049b8b33782eeab29703444cedf122 100644 (file)
@@ -1,4 +1,4 @@
-<div class="btn-group" role="group">
+<div class="btn-group" role="group" ng-if="colData.links.length">
   <button type="button" class="dropdown-toggle btn {{:: $ctrl.settings.columns[colIndex].size }} btn-{{:: $ctrl.settings.columns[colIndex].style }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="colData.open = true">
     <i ng-if=":: $ctrl.settings.columns[colIndex].icon" class="crm-i {{:: $ctrl.settings.columns[colIndex].icon }}"></i>
     {{:: colData.text }}