Commit 966f149c0874cddf2f7d03055cf766254bbde63a

Authored by VoBa
Committed by GitHub
2 parents a63d6af6 00a40e63

Merge pull request #66 from deaflynx/develop/2.6-edge

Develop/2.6 edge fix import rule chains, added button, locale for edge
... ... @@ -21,6 +21,9 @@
21 21 <md-button ng-click="onUnassignFromCustomer({event: $event, isPublic: isPublic})"
22 22 ng-show="!isEdit && (edgeScope === 'customer' || edgeScope === 'tenant') && isAssignedToCustomer"
23 23 class="md-raised md-primary">{{ isPublic ? 'edge.make-private' : 'edge.unassign-from-customer' | translate }}</md-button>
  24 +<md-button ng-click="onMakePublic({event: $event})"
  25 + ng-show="!isEdit && edgeScope === 'tenant' && !isAssignedToCustomer && !isPublic"
  26 + class="md-raised md-primary">{{ 'edge.make-public' | translate }}</md-button>
24 27 <md-button ng-click="onManageEdgeAssets({event: $event})"
25 28 ng-show="!isEdit && edgeScope === 'tenant'"
26 29 class="md-raised md-primary">{{ 'edge.manage-edge-assets' | translate }}</md-button>
... ...
... ... @@ -310,7 +310,7 @@ export default function ImportExport($log, $translate, $q, $mdDialog, $document,
310 310 return false;
311 311 }
312 312 if (angular.isUndefined(ruleChainImport.ruleChain.type)) {
313   - return false;
  313 + ruleChainImport.ruleChain.type = types.ruleChainType.core;
314 314 }
315 315 return true;
316 316 }
... ...
... ... @@ -849,7 +849,10 @@
849 849 "deployed": "Deployed",
850 850 "pending": "Pending",
851 851 "unassign-edges-action-title": "Unassign { count, plural, 1 {1 edge} other {# edges} } from customer",
852   - "enter-edge-type": "Enter edge type"
  852 + "enter-edge-type": "Enter edge type",
  853 + "no-edge-types-matching": "No edge types matching '{{entitySubtype}}' were found.",
  854 + "edge-type-list-empty": "No edge types selected.",
  855 + "edge-types": "Edge types"
853 856 },
854 857 "error": {
855 858 "unable-to-connect": "Unable to connect to the server! Please check your internet connection.",
... ...