Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI update to add asset dialog

Don7cd01d0df98e
diff --git a/deployment/manager/shared/locales/en/or.json b/deployment/manager/shared/locales/en/or.json
index 7a026dc70..91544ced4 100644
--- a/deployment/manager/shared/locales/en/or.json
+++ b/deployment/manager/shared/locales/en/or.json
@@ -282,6 +282,7 @@
"decimals": "Decimals",
"editAsset": "Edit asset",
"viewAsset": "View asset",
+ "addAsset": "Add asset",
"parent": "Parent",
"none": "None",
"properties": "Properties",
diff --git a/deployment/manager/shared/locales/nl/or.json b/deployment/manager/shared/locales/nl/or.json
index 33baf9a1d..eb7396fd3 100644
--- a/deployment/manager/shared/locales/nl/or.json
+++ b/deployment/manager/shared/locales/nl/or.json
@@ -281,6 +281,7 @@
"editCurrentValue": "Decimalen",
"decimals": "Decimalen",
"editAsset": "Asset aanpassen",
+ "addAsset": "Asset toevoegen",
"parent": "Parent",
"none": "Geen",
"properties": "Eigenschappen",
diff --git a/ui/component/or-asset-tree/src/index.ts b/ui/component/or-asset-tree/src/index.ts
index c62ffb207..49a41fd18 100644
--- a/ui/component/or-asset-tree/src/index.ts
+++ b/ui/component/or-asset-tree/src/index.ts
@@ -465,7 +465,7 @@ export class OrAssetTree extends subscribe(manager)(LitElement) {
const dialog = showDialog(
{
- title: "addAsset",
+ title: i18next.t("addAsset"),
content: html`
<form id="mdc-dialog-form-add">
<div id="type-list">
@@ -519,6 +519,7 @@ export class OrAssetTree extends subscribe(manager)(LitElement) {
}
#type-list {
overflow-y: scroll;
+ text-transform: capitalize;
}
.hidden {
visibility: hidden;