CRM-15166 - crmCaseType/edit.html - Don't allow deletion of the standard timeline
authorTim Otten <totten@civicrm.org>
Thu, 21 Aug 2014 21:13:56 +0000 (14:13 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 22 Aug 2014 01:44:24 +0000 (18:44 -0700)
partials/crmCaseType/edit.html

index 987223201c2a5a3c5c30ad0c4d7d36990c56a849..a841b88123da995b7356db4bcedffb832343fa8a 100644 (file)
@@ -27,6 +27,7 @@ Required vars: caseType
       <li ng-repeat="activitySet in caseType.definition.activitySets">
         <a href="#acttab-{{$index}}">{{ activitySet.label }}</a>
         <span class="ui-icon ui-icon-trash" title="Remove"
+          ng-hide="activitySet.name == 'standard_timeline'"
           ng-click="removeItem(caseType.definition.activitySets, activitySet)">Remove</span>
         <!-- Weird spacing:
         <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activitySets, activitySet)">