From cf50008770e78ff2e8a1b21c96d25f7a12b21d64 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 23 Oct 2015 15:03:15 -0400 Subject: [PATCH] CRM-13823 - Show icons in Angular tabs --- ang/crmStatusPage/StatusPage.html | 3 ++- ang/crmUi.js | 6 +++++- ang/crmUi/tabset.html | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ang/crmStatusPage/StatusPage.html b/ang/crmStatusPage/StatusPage.html index fa49b3a080..efbe3c98d1 100644 --- a/ang/crmStatusPage/StatusPage.html +++ b/ang/crmStatusPage/StatusPage.html @@ -9,11 +9,12 @@

diff --git a/ang/crmUi.js b/ang/crmUi.js index 63ad95f2c8..b01e897d3f 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -661,6 +661,7 @@ restrict: 'EA', scope: { crmTitle: '@', + crmIcon: '@', count: '@', id: '@' }, @@ -845,8 +846,11 @@ .directive('crmIcon', function() { return { restrict: 'EA', - scope: {}, link: function (scope, element, attrs) { + if (element.is('[crm-ui-tab]')) { + // handled in crmUiTab ctrl + return; + } if (attrs.crmIcon.substring(0,3) == 'fa-') { $(element).prepend(' '); } diff --git a/ang/crmUi/tabset.html b/ang/crmUi/tabset.html index f232937945..fafb1dfdac 100644 --- a/ang/crmUi/tabset.html +++ b/ang/crmUi/tabset.html @@ -2,6 +2,7 @@