Skip to content

Commit

Permalink
Merge pull request #21217 from colemanw/searchKitButtonTokens
Browse files Browse the repository at this point in the history
SearchKit - Allow tokens in menu button text
  • Loading branch information
seamuslee001 authored Aug 25, 2021
2 parents 92717de + 9aa4966 commit f2016c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<span crm-ui-editable ng-model="col.text">{{ col.text }}</span>
</button>
</div>
<crm-search-admin-token-select model="col" field="text" suffix=":label"></crm-search-admin-token-select>
</div>
<hr>
<crm-search-admin-link-group links="$ctrl.parent.getLinks()" group="col.links" api-entity="$ctrl.apiEntity" api-params="$ctrl.apiParams"></crm-search-admin-link-group>
2 changes: 1 addition & 1 deletion ext/search_kit/ang/crmSearchDisplay/colType/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="btn-group">
<button type="button" class="dropdown-toggle {{:: col.size }} btn-{{:: col.style }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="col.open = true">
<i ng-if=":: col.icon" class="crm-i {{:: col.icon }}"></i>
{{:: col.text }}
{{:: $ctrl.replaceTokens(col.text, row) }}
</button>
<ul class="dropdown-menu {{ col.alignment === 'text-right' ? 'dropdown-menu-right' : '' }}" ng-if=":: col.open">
<li ng-repeat="item in col.links" class="bg-{{:: item.style }}">
Expand Down

0 comments on commit f2016c5

Please sign in to comment.