Dashboard - Efficiency tweak
authorColeman Watts <coleman@civicrm.org>
Wed, 11 May 2022 20:00:34 +0000 (16:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 11 May 2022 20:00:34 +0000 (16:00 -0400)
Use static binding for non-changing values

ang/crmDashboard/Dashboard.html
ang/crmDashboard/Dashlet.html

index 8b500c1d4ac9c391f36c3945d7cb6b2d76cb9e37..03c4cd802ace3c2abf86ac5e83dd080e6e69d125 100644 (file)
@@ -8,7 +8,7 @@
     </legend>
     <div ng-if="$ctrl.showInactive" ng-model="$ctrl.inactive" ui-sortable="$ctrl.sortableOptions" class="crm-dashboard-droppable">
       <div class="help">
-        {{ ts('Drag and drop dashlets onto the left or right columns below to add them to your dashboard. Changes are automatically saved.') }}
+        {{:: ts('Drag and drop dashlets onto the left or right columns below to add them to your dashboard. Changes are automatically saved.') }}
         <a crm-ui-help="hs({id: 'dash_configure', title: ts('Dashboard Configuration')})"></a>
       </div>
       <div ng-repeat="dashlet in $ctrl.inactive" class="crm-inactive-dashlet">
index 738474bcea917a2025c8418f20d733a6d94e4ad3..e034a9a22dfab4ba94ad3c390711196f33b60764 100644 (file)
@@ -3,7 +3,7 @@
   <a href class="crm-i fa-expand" title="{{:: ts('View fullscreen') }}" aria-hidden="true" ng-click="$ctrl.fullscreen()"></a>
   <a href class="crm-i fa-refresh" title="{{:: ts('Refresh') }}" aria-hidden="true" ng-click="$ctrl.forceRefresh()"></a>
   <a href class="crm-dashlet-collapse crm-i fa-caret-{{ $ctrl.collapsed ? 'right' : 'down' }}" title="{{ $ctrl.collapsed ? ts('Expand') : ts('Collapse') }}" aria-hidden="true" ng-click="$ctrl.toggleCollapse()"></a>
-  <h3>{{ $ctrl.dashlet.label }}</h3>
+  <h3>{{:: $ctrl.dashlet.label }}</h3>
 </div>
 <div class="crm-dashlet-content" ng-show="!$ctrl.collapsed">
   <div ng-if="$ctrl.dashlet.directive" ng-include="'~/crmDashboard/directives/' + $ctrl.dashlet.directive + '.html'"></div>