From 01a057e48419b29a5805bb33344999c4ebd11971 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 28 Mar 2021 23:17:18 -0400 Subject: [PATCH] AfformGui - Add link to edit SavedSearch to searchDisplay element --- .../elements/afGuiSearchDisplay.component.js | 1 + .../ang/afGuiEditor/elements/afGuiSearchDisplay.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.component.js b/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.component.js index 9a7a0c0372..c85212f81f 100644 --- a/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.component.js +++ b/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.component.js @@ -13,6 +13,7 @@ this.$onInit = function() { ctrl.display = afGui.meta.searchDisplays[ctrl.node['search-name'] + '.' + ctrl.node['display-name']]; + ctrl.editUrl = CRM.url('civicrm/admin/search#/edit/' + ctrl.display.saved_search_id); }; } diff --git a/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.html b/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.html index e49a310cb9..7666a197af 100644 --- a/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.html +++ b/ext/afform/admin/ang/afGuiEditor/elements/afGuiSearchDisplay.html @@ -1,6 +1,18 @@
{{ $ctrl.display.label }} +

-- 2.25.1