Commit 99bd0ece91ae9d0fa25ff38cab7fe1eab6055a0f
1 parent
a0c7e68e
fixed isPublic issue with assets and edges
Showing
2 changed files
with
26 additions
and
3 deletions
... | ... | @@ -16,10 +16,10 @@ |
16 | 16 | |
17 | 17 | --> |
18 | 18 | <md-button ng-click="onManageUsers({event: $event})" ng-show="!isEdit && !isPublic" class="md-raised md-primary">{{ 'customer.manage-users' | translate }}</md-button> |
19 | -<md-button ng-click="onManageAssets({event: $event})" ng-show="!isEdit && !isPublic" class="md-raised md-primary">{{ 'customer.manage-assets' | translate }}</md-button> | |
19 | +<md-button ng-click="onManageAssets({event: $event})" ng-show="!isEdit" class="md-raised md-primary">{{ 'customer.manage-assets' | translate }}</md-button> | |
20 | 20 | <md-button ng-click="onManageDevices({event: $event})" ng-show="!isEdit" class="md-raised md-primary">{{ 'customer.manage-devices' | translate }}</md-button> |
21 | 21 | <md-button ng-click="onManageDashboards({event: $event})" ng-show="!isEdit" class="md-raised md-primary">{{ 'customer.manage-dashboards' | translate }}</md-button> |
22 | -<md-button ng-click="onManageEdges({event: $event})" ng-show="!isEdit && !isPublic" class="md-raised md-primary">{{ 'customer.manage-edges' | translate }}</md-button> | |
22 | +<md-button ng-click="onManageEdges({event: $event})" ng-show="!isEdit" class="md-raised md-primary">{{ 'customer.manage-edges' | translate }}</md-button> | |
23 | 23 | <md-button ng-click="onDeleteCustomer({event: $event})" ng-show="!isEdit && !isPublic" class="md-raised md-primary">{{ 'customer.delete' | translate }}</md-button> |
24 | 24 | |
25 | 25 | <div layout="row"> | ... | ... |
... | ... | @@ -117,13 +117,36 @@ |
117 | 117 | <div translate ng-message="required">edge.cloud-endpoint-required</div> |
118 | 118 | </div> |
119 | 119 | </md-input-container> |
120 | + </fieldset> | |
121 | + <div layout="row"> | |
122 | + | |
120 | 123 | <md-input-container class="md-block" flex> |
121 | 124 | <label translate>edge.edge-key</label> |
122 | 125 | <input ng-model="edge.routingKey" disabled> |
123 | 126 | </md-input-container> |
127 | + <md-button class="md-icon-button" style="margin-top: 14px;" | |
128 | + ngclipboard data-clipboard-action="copy" | |
129 | + ngclipboard-success="onEdgeInfoCopied('key')" | |
130 | + data-clipboard-text="{{edge.routingKey}}"> | |
131 | + <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> | |
132 | + <md-tooltip md-direction="top"> | |
133 | + {{ 'edge.copy-edge-key' | translate }} | |
134 | + </md-tooltip> | |
135 | + </md-button> | |
136 | + </div> | |
137 | + <div layout="row"> | |
124 | 138 | <md-input-container class="md-block" flex> |
125 | 139 | <label translate>edge.edge-secret</label> |
126 | 140 | <input ng-model="edge.secret" disabled> |
127 | 141 | </md-input-container> |
128 | - </fieldset> | |
142 | + <md-button class="md-icon-button" style="margin-top: 14px;" | |
143 | + ngclipboard data-clipboard-action="copy" | |
144 | + data-clipboard-text="{{edge.secret}}" | |
145 | + ngclipboard-success="onEdgeInfoCopied('secret')"> | |
146 | + <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> | |
147 | + <md-tooltip md-direction="top"> | |
148 | + {{ 'edge.copy-edge-secret' | translate }} | |
149 | + </md-tooltip> | |
150 | + </md-button> | |
151 | + </div> | |
129 | 152 | </md-content> | ... | ... |