Commit 59018f12847c1d3e5add639b15bff4ecc7cc6e45
1 parent
a083719d
Set 'default' as default edge type, added hints to cloudEndpoint, licenseKey
Showing
3 changed files
with
7 additions
and
13 deletions
@@ -100,24 +100,17 @@ | @@ -100,24 +100,17 @@ | ||
100 | tb-required="true" | 100 | tb-required="true" |
101 | the-form="theForm" | 101 | the-form="theForm" |
102 | ng-model="edge.type" | 102 | ng-model="edge.type" |
103 | - entity-type="types.entityType.edge" | ||
104 | - ng-value="defaultType"> | 103 | + entity-type="types.entityType.edge"> |
105 | </tb-entity-subtype-autocomplete> | 104 | </tb-entity-subtype-autocomplete> |
106 | - <div layout="row"> | ||
107 | - <md-input-container class="md-block" flex> | 105 | + <div translate class="tb-hint">edge.license-key-hint</div> |
106 | + <md-input-container class="md-block"> | ||
108 | <label translate>edge.edge-license-key</label> | 107 | <label translate>edge.edge-license-key</label> |
109 | <input required name="edgeLicenseKey" ng-model="edge.edgeLicenseKey"> | 108 | <input required name="edgeLicenseKey" ng-model="edge.edgeLicenseKey"> |
110 | <div ng-messages="theForm.edgeLicenseKey.$error"> | 109 | <div ng-messages="theForm.edgeLicenseKey.$error"> |
111 | <div translate ng-message="required">edge.edge-license-key-required</div> | 110 | <div translate ng-message="required">edge.edge-license-key-required</div> |
112 | </div> | 111 | </div> |
113 | </md-input-container> | 112 | </md-input-container> |
114 | - <md-button class="md-icon-button" style="margin-top: 14px;"> | ||
115 | - <md-tooltip md-direction="left"> | ||
116 | - {{ 'edge.license-key-tooltip' | translate }} | ||
117 | - </md-tooltip> | ||
118 | - <md-icon md-svg-icon="mdi:help"></md-icon> | ||
119 | - </md-button> | ||
120 | - </div> | 113 | + <div translate class="tb-hint">edge.cloud-endpoint-hint</div> |
121 | <md-input-container class="md-block"> | 114 | <md-input-container class="md-block"> |
122 | <label translate>edge.cloud-endpoint</label> | 115 | <label translate>edge.cloud-endpoint</label> |
123 | <input required name="cloudEndpoint" ng-model="edge.cloudEndpoint"> | 116 | <input required name="cloudEndpoint" ng-model="edge.cloudEndpoint"> |
@@ -29,7 +29,6 @@ export default function EdgeDirective($compile, $templateCache, $translate, $mdD | @@ -29,7 +29,6 @@ export default function EdgeDirective($compile, $templateCache, $translate, $mdD | ||
29 | scope.isAssignedToCustomer = false; | 29 | scope.isAssignedToCustomer = false; |
30 | scope.isPublic = false; | 30 | scope.isPublic = false; |
31 | scope.assignedCustomer = null; | 31 | scope.assignedCustomer = null; |
32 | - scope.defaultType = 'default'; | ||
33 | 32 | ||
34 | scope.$watch('edge', function(newVal) { | 33 | scope.$watch('edge', function(newVal) { |
35 | if (newVal) { | 34 | if (newVal) { |
@@ -37,6 +36,7 @@ export default function EdgeDirective($compile, $templateCache, $translate, $mdD | @@ -37,6 +36,7 @@ export default function EdgeDirective($compile, $templateCache, $translate, $mdD | ||
37 | scope.edge.routingKey = utils.guid(''); | 36 | scope.edge.routingKey = utils.guid(''); |
38 | scope.edge.secret = generateSecret(20); | 37 | scope.edge.secret = generateSecret(20); |
39 | scope.edge.cloudEndpoint = utils.baseUrl(); | 38 | scope.edge.cloudEndpoint = utils.baseUrl(); |
39 | + scope.edge.type = 'default'; | ||
40 | } | 40 | } |
41 | if (scope.edge.customerId && scope.edge.customerId.id !== types.id.nullUid) { | 41 | if (scope.edge.customerId && scope.edge.customerId.id !== types.id.nullUid) { |
42 | scope.isAssignedToCustomer = true; | 42 | scope.isAssignedToCustomer = true; |
@@ -853,7 +853,8 @@ | @@ -853,7 +853,8 @@ | ||
853 | "no-edge-types-matching": "No edge types matching '{{entitySubtype}}' were found.", | 853 | "no-edge-types-matching": "No edge types matching '{{entitySubtype}}' were found.", |
854 | "edge-type-list-empty": "No edge types selected.", | 854 | "edge-type-list-empty": "No edge types selected.", |
855 | "edge-types": "Edge types", | 855 | "edge-types": "Edge types", |
856 | - "license-key-tooltip": "To get license key please visit www.thingsboard.io/edge" | 856 | + "license-key-hint": "To obtain your license please navigate to the <a href='https://thingsboard.io/pricing/?active=thingsboard-edge' target='_blank'>pricing page</a> and select the best license option for your case.", |
857 | + "cloud-endpoint-hint": "Edge requires HTTP(s) access to Cloud (ThingsBoard CE/PE) to verify the license key. Please specify Cloud URL that Edge is able to connect to." | ||
857 | }, | 858 | }, |
858 | "error": { | 859 | "error": { |
859 | "unable-to-connect": "Unable to connect to the server! Please check your internet connection.", | 860 | "unable-to-connect": "Unable to connect to the server! Please check your internet connection.", |