From 2309193d83956ce170e00775a0841855c8ae6075 Mon Sep 17 00:00:00 2001 From: Artem Babak Date: Thu, 5 Nov 2020 15:56:58 +0200 Subject: [PATCH] added buttons Copy Edge Key and Secret instead of old icon buttons --- .../home/pages/edge/edge-tabs.component.ts | 10 +++--- .../home/pages/edge/edge.component.html | 33 ++++++++++--------- .../assets/locale/locale.constant-en_US.json | 4 +-- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge-tabs.component.ts b/ui-ngx/src/app/modules/home/pages/edge/edge-tabs.component.ts index 860081e0a1..fb83ac5c34 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge-tabs.component.ts +++ b/ui-ngx/src/app/modules/home/pages/edge/edge-tabs.component.ts @@ -14,11 +14,11 @@ /// limitations under the License. /// -import {Component} from '@angular/core'; -import {Store} from "@ngrx/store"; -import {AppState} from "@core/core.state"; -import {EdgeInfo} from "@shared/models/edge.models"; -import {EntityTabsComponent} from "@home/components/entity/entity-tabs.component"; +import { Component } from '@angular/core'; +import { Store } from "@ngrx/store"; +import { AppState } from "@core/core.state"; +import { EdgeInfo } from "@shared/models/edge.models"; +import { EntityTabsComponent } from "@home/components/entity/entity-tabs.component"; @Component({ selector: 'tb-edge-tabs', diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge.component.html b/ui-ngx/src/app/modules/home/pages/edge/edge.component.html index 8d3f73797a..77dea3d5d4 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge.component.html +++ b/ui-ngx/src/app/modules/home/pages/edge/edge.component.html @@ -79,6 +79,23 @@ edge.copy-id + + +
@@ -147,14 +164,6 @@ -
@@ -163,14 +172,6 @@
-
diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index a419648612..3e2956f2c3 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -983,10 +983,10 @@ "rulechains": "Edge Rule Chains", "rulechain": "Edge Rule Chain", "edge-key": "Edge key", - "copy-edge-key": "Copy edge key", + "copy-edge-key": "Copy Edge key", "edge-key-copied-message": "Edge key has been copied to clipboard", "edge-secret": "Edge secret", - "copy-edge-secret": "Copy edge secret", + "copy-edge-secret": "Copy Edge secret", "edge-secret-copied-message": "Edge secret has been copied to clipboard", "manage-edge-assets": "Manage edge assets", "manage-edge-devices": "Manage edge devices",