Skip to content

armgit / core

Public Imported from GitHub
0

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

full access checkbox in user config page

Vincent7b01c491c2fb
diff --git a/manager/src/web/shared/locales/en/or.json b/manager/src/web/shared/locales/en/or.json
index 3b2dec43f..2a7f402bb 100644
--- a/manager/src/web/shared/locales/en/or.json
+++ b/manager/src/web/shared/locales/en/or.json
@@ -255,6 +255,7 @@
"repeatPassword": "Repeat password",
"details": "Details",
"permissions":"Permissions",
+ "fullAccessLabel":"Admin: full access; manage users and roles",
"noChildAssets": "No child assets",
"account": "Account",
"editAttribute": "Change attribute",
diff --git a/manager/src/web/shared/locales/nl/or.json b/manager/src/web/shared/locales/nl/or.json
index 9d29d35ef..eb13084eb 100644
--- a/manager/src/web/shared/locales/nl/or.json
+++ b/manager/src/web/shared/locales/nl/or.json
@@ -260,6 +260,7 @@
"repeatPassword": "Herhaal wachtwoord",
"details": "Details",
"permissions":"Rechten",
+ "fullAccessLabel":"Admin: volledige toegang; gebruikers en rollen beheren",
"units": {
"CELSIUS": "°C",
"FAHRENHEIT": "°F",
diff --git a/ui/app/manager/src/pages/page-users.ts b/ui/app/manager/src/pages/page-users.ts
index 52bc88161..23ae4c0cd 100644
--- a/ui/app/manager/src/pages/page-users.ts
+++ b/ui/app/manager/src/pages/page-users.ts
@@ -593,13 +593,18 @@ class PageUsers<S extends AppStateKeyed> extends Page<S> {
<!-- enabled -->
<or-mwc-input ?readonly="${readonly}"
.label="${i18next.t("active")}"
- .type="${InputType.SWITCH}" min="1"
+ .type="${InputType.CHECKBOX}"
.value="${user.enabled}"
@or-mwc-input-changed="${(e: OrInputChangedEvent) => user.enabled = e.detail.value}"
style="height: 56px;"></or-mwc-input>
<!-- is admin -->
- <!-- placeholder -->
+ <or-mwc-input ?readonly="${true}"
+ .label="${i18next.t("fullAccessLabel")}"
+ .type="${InputType.CHECKBOX}"
+ .value="${user.enabled}"
+ @or-mwc-input-changed="${(e: OrInputChangedEvent) => console.log(e.detail.value)}"
+ style="height: 56px;"></or-mwc-input>
<!-- composite roles -->
<or-mwc-input ?readonly="${readonly}"