Commit 0ef1711b28d29218e208db563d91e6abe5941849
1 parent
0a7d8e86
Replaced copy edge id and key buttons
Showing
2 changed files
with
16 additions
and
24 deletions
... | ... | @@ -48,6 +48,20 @@ |
48 | 48 | <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> |
49 | 49 | <span translate>edge.copy-id</span> |
50 | 50 | </md-button> |
51 | + <md-button ngclipboard data-clipboard-action="copy" | |
52 | + ngclipboard-success="onEdgeInfoCopied('key')" | |
53 | + data-clipboard-text="{{edge.routingKey}}" ng-show="!isEdit" | |
54 | + class="md-raised"> | |
55 | + <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> | |
56 | + <span translate>edge.copy-edge-key</span> | |
57 | + </md-button> | |
58 | + <md-button ngclipboard data-clipboard-action="copy" | |
59 | + ngclipboard-success="onEdgeInfoCopied('secret')" | |
60 | + data-clipboard-text="{{edge.secret}}" ng-show="!isEdit" | |
61 | + class="md-raised"> | |
62 | + <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> | |
63 | + <span translate>edge.copy-edge-secret</span> | |
64 | + </md-button> | |
51 | 65 | <md-button ng-click="onEdgeSync(edge.id)" |
52 | 66 | ng-show="!isEdit" |
53 | 67 | class="md-raised"> |
... | ... | @@ -103,35 +117,13 @@ |
103 | 117 | <div translate ng-message="required">edge.cloud-endpoint-required</div> |
104 | 118 | </div> |
105 | 119 | </md-input-container> |
106 | - </fieldset> | |
107 | - <div layout="row"> | |
108 | 120 | <md-input-container class="md-block" flex> |
109 | 121 | <label translate>edge.edge-key</label> |
110 | 122 | <input ng-model="edge.routingKey" disabled> |
111 | 123 | </md-input-container> |
112 | - <md-button class="md-icon-button" style="margin-top: 14px;" | |
113 | - ngclipboard data-clipboard-action="copy" | |
114 | - ngclipboard-success="onEdgeInfoCopied('key')" | |
115 | - data-clipboard-text="{{edge.routingKey}}"> | |
116 | - <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> | |
117 | - <md-tooltip md-direction="top"> | |
118 | - {{ 'edge.copy-edge-key' | translate }} | |
119 | - </md-tooltip> | |
120 | - </md-button> | |
121 | - </div> | |
122 | - <div layout="row"> | |
123 | 124 | <md-input-container class="md-block" flex> |
124 | 125 | <label translate>edge.edge-secret</label> |
125 | 126 | <input ng-model="edge.secret" disabled> |
126 | 127 | </md-input-container> |
127 | - <md-button class="md-icon-button" style="margin-top: 14px;" | |
128 | - ngclipboard data-clipboard-action="copy" | |
129 | - data-clipboard-text="{{edge.secret}}" | |
130 | - ngclipboard-success="onEdgeInfoCopied('secret')"> | |
131 | - <md-icon md-svg-icon="mdi:clipboard-arrow-left"></md-icon> | |
132 | - <md-tooltip md-direction="top"> | |
133 | - {{ 'edge.copy-edge-secret' | translate }} | |
134 | - </md-tooltip> | |
135 | - </md-button> | |
136 | - </div> | |
128 | + </fieldset> | |
137 | 129 | </md-content> | ... | ... |