@c8y/ng1-modules 1019.24.0 → 1019.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -255,9 +255,9 @@
255
255
  </div>
256
256
  <span
257
257
  class="text-lowercase"
258
- title="{{ option.severity | translate }}"
258
+ title="{{ severities[option.severity].label | translate }}"
259
259
  >
260
- {{ option.severity | translate }}
260
+ {{ severities[option.severity].label | translate }}
261
261
  </span>
262
262
  </div>
263
263
  <div class="col-2 text-right showOnHover hidden-xs">
@@ -1 +1 @@
1
- "use strict";!function(){function e(s,e,t,n,a,i,r,o,c,u,d,l,p){var f=e.userId,g={PATTERN:{type:"pattern",text:l.validation.password.message},PASSWORD_MISSMATCH:{type:"password_missmatch",text:u("Password confirmation does not match.")},REQUIRED:{type:"required",text:u("This field is required.")},EMAIL:{type:"email",text:u("Invalid email address.")}};function h(e){a.checkIfCurrent(e).then(function(e){s.isCurrent=e}),s.user=e,s._groups={},(e.groups&&e.groups.references||[]).forEach(function(e){e=e.group.id;s._groups[e]=!0}),s.showPassword=!e.id,s.changePasswordBtn=!s.showPassword,delete s.confirmPassword}function m(e){s.groups=e}function v(){f?a.detail(f).then(function(e){return e.data}).then(h):h({enabled:s.isNew=!0})}s.saving=!1,s.passwordRegex=l.validation.password.pattern,s.cancel=function(){t.path("/deviceusers")},s.save=function(e){if(s.saving=!0,s.userForm.$valid){var t=_.keys(s._groups).filter(function(e){return s._groups[e]}).map(function(e){return parseInt(e,10)});try{var r=a.save(e,s.password.currentPassword).then(function(e){e=e.data;return f=e.userName,e.id=f,e}).then(function(e){return i.updateGroups(e,t)}).then(p.triggerEvent("dmCredentialManagement",{action:"assignRole",name:"role"})).then(angular.bind({},v)).then(_.partial(o.success,u("Device updated.")));r.finally(function(){s.saving=!1}),r.then(function(){n.history.back()})}catch(e){o.danger(e.message),s.saving=!1}}},s.confirmPassword="",s.password={},s.invalid=angular.bind(r,r.invalid,s,"userForm"),s.changePasswordConfirm=function(e){s.userForm.confirmPassword.$setValidity(g.PASSWORD_MISSMATCH.type,e===s.user.password)},s.$watch("user.userName",function(e){e&&c.changeTitle({title:e},{skipTitleTranslation:!0})}),s.getErrorFeedback=function(e){var r=s.userForm[e]||{},n=[];return _.forEach(r.$error||{},function(e,t){e&&!r.$pristine&&n.push(d.getString(g[t.toUpperCase()].text))}),n.join(" ")},v(),i.list(void 0).then(m)}e.$inject=["$scope","$routeParams","$location","$window","c8yUser","c8yUserGroup","c8yBase","c8yAlert","c8yTitle","gettext","gettextCatalog","c8yConfig","c8yGainsightService"],angular.module("c8y.parts.deviceUsers").controller("deviceUserDetailCtrl",e)}();
1
+ "use strict";!function(){function e(s,e,r,n,a,i,t,o,c,u,d,l,p,g){var f=e.userId,h={PATTERN:{type:"pattern",text:l.validation.password.message},PASSWORD_MISSMATCH:{type:"password_missmatch",text:u("Password confirmation does not match.")},REQUIRED:{type:"required",text:u("This field is required.")},EMAIL:{type:"email",text:u("Invalid email address.")}};function m(e){a.checkIfCurrent(e).then(function(e){s.isCurrent=e}),s.user=e,s._groups={},(e.groups&&e.groups.references||[]).forEach(function(e){e=e.group.id;s._groups[e]=!0}),s.showPassword=!e.id,s.changePasswordBtn=!s.showPassword,delete s.confirmPassword}function v(e){s.groups=e}function w(){f?a.detail(f).then(function(e){return e.data}).then(m):m({enabled:s.isNew=!0})}s.saving=!1,s.passwordRegex=l.validation.password.pattern,s.cancel=function(){r.path("/deviceusers")},s.save=function(e){if(s.saving=!0,s.userForm.$valid){var r=_.keys(s._groups).filter(function(e){return s._groups[e]}).map(function(e){return parseInt(e,10)});try{var t=a.save(e,s.password.currentPassword).then(function(e){e=e.data;return f=e.userName,e.id=f,e}).then(function(e){return i.updateGroups(e,r)}).then(p.triggerEvent("dmCredentialManagement",{action:"assignRole",name:"role"})).then(angular.bind({},w)).then(_.partial(o.success,u("Device updated.")));t.finally(function(){s.saving=!1}),t.then(function(){n.history.back()})}catch(e){o.danger(e.message),s.saving=!1}}},s.confirmPassword="",s.password={},s.invalid=angular.bind(t,t.invalid,s,"userForm"),s.changePasswordConfirm=function(e){s.userForm.confirmPassword.$setValidity(h.PASSWORD_MISSMATCH.type,e===s.user.password)},s.$watch("user.userName",function(e){e&&c.changeTitle({title:e},{skipTitleTranslation:!0})}),s.getErrorFeedback=function(e){var t=s.userForm[e]||{},n=[];return _.forEach(t.$error||{},function(e,r){e&&!t.$pristine&&n.push(d.getString(h[r.toUpperCase()].text))}),n.join(" ")},s.getGroupName=g.getName,w(),i.list(void 0).then(v)}e.$inject=["$scope","$routeParams","$location","$window","c8yUser","c8yUserGroup","c8yBase","c8yAlert","c8yTitle","gettext","gettextCatalog","c8yConfig","c8yGainsightService","c8yPropertyValueTransformService"],angular.module("c8y.parts.deviceUsers").controller("deviceUserDetailCtrl",e)}();
@@ -150,7 +150,7 @@
150
150
  </div>
151
151
  <div class="c8y-list__item__body">
152
152
  <label for="{{ 'groupcheckbox' + $index }}" class="text-normal">
153
- {{::group.name | translate}}
153
+ {{::getGroupName(group) | translate}}
154
154
  </label>
155
155
  <p class="small text-muted">{{::group.description | translate}}</p>
156
156
  </div>
@@ -1099,6 +1099,9 @@ msgstr "Admin"
1099
1099
  msgid "Admin API version"
1100
1100
  msgstr "Admin-API-version"
1101
1101
 
1102
+ msgid "Admin User`role`"
1103
+ msgstr "Administrator-Nutzer"
1104
+
1102
1105
  msgid "Administration"
1103
1106
  msgstr "Administration"
1104
1107
 
@@ -1636,6 +1639,9 @@ msgstr "Aufsteigend"
1636
1639
  msgid "Asset"
1637
1640
  msgstr "Asset"
1638
1641
 
1642
+ msgid "Asset Manager`role`"
1643
+ msgstr "Asset-Manager"
1644
+
1639
1645
  msgid "Asset notes"
1640
1646
  msgstr "Asset-Anmerkungen"
1641
1647
 
@@ -2136,6 +2142,9 @@ msgstr "Bulk-Operationen werden hier angezeigt"
2136
2142
  msgid "Bulk registration"
2137
2143
  msgstr "Bulk-Registrierung"
2138
2144
 
2145
+ msgid "Business User`role`"
2146
+ msgstr "Geschäftlicher Benutzer"
2147
+
2139
2148
  msgid "Business rules"
2140
2149
  msgstr "Geschäftsregeln"
2141
2150
 
@@ -4720,6 +4729,9 @@ msgstr "Geräteinformation"
4720
4729
  msgid "Device Management User"
4721
4730
  msgstr "Device Management-Nutzer"
4722
4731
 
4732
+ msgid "Device User`role`"
4733
+ msgstr "Gerätebenutzer"
4734
+
4723
4735
  msgid "Device added to group"
4724
4736
  msgstr "Gerät zu Gruppe hinzugefügt."
4725
4737
 
@@ -5763,10 +5775,10 @@ msgid "Escalation steps"
5763
5775
  msgstr "Eskalationsschritte"
5764
5776
 
5765
5777
  msgid ""
5766
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5778
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5767
5779
  " device is compromised, attackers might have extended access to the platform."
5768
5780
  msgstr ""
5769
- "Insbesondere Änderungen in der globalen Rolle \"devices\" können zu einer Sicherheitslücke führen.\n"
5781
+ "Insbesondere Änderungen in der globalen Rolle \"Gerätebenutzer\" können zu einer Sicherheitslücke führen.\n"
5770
5782
  " Wenn z. B. die Sicherheit eines Geräts beeinträchtigt ist, könnten Angreifer erweiterten Zugriff auf die Plattform erhalten."
5771
5783
 
5772
5784
  msgid "Event"
@@ -11517,6 +11529,9 @@ msgstr "Lese- und Schreibzugriff auf Prozessausgabe"
11517
11529
  msgid "Reader"
11518
11530
  msgstr "Leser"
11519
11531
 
11532
+ msgid "Reader User`role`"
11533
+ msgstr "Leser-Benutzer"
11534
+
11520
11535
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11521
11536
  msgstr "Readiness-Probe fehlgeschlagen: {{requestMethod}} {{uri}}: {{protocol}}: Anfrage während des Verbindungsaufbaus abgebrochen (Client.Timeout beim Warten auf Header überschritten)."
11522
11537
 
@@ -95,6 +95,9 @@ msgstr "Add next"
95
95
  msgid "Add next`value`"
96
96
  msgstr "Add next"
97
97
 
98
+ msgid "Admin User`role`"
99
+ msgstr "Admin User"
100
+
98
101
  msgid "All children active`assets`"
99
102
  msgstr "All children active"
100
103
 
@@ -116,6 +119,9 @@ msgstr "Apply"
116
119
  msgid "Arrow`icons-category`"
117
120
  msgstr "Arrow"
118
121
 
122
+ msgid "Asset Manager`role`"
123
+ msgstr "Asset Manager"
124
+
119
125
  msgid "Availability`of dashboard based on permissions`"
120
126
  msgstr "Availability"
121
127
 
@@ -134,6 +140,9 @@ msgstr "Branded"
134
140
  msgid "Branded`theme`"
135
141
  msgstr "Branded"
136
142
 
143
+ msgid "Business User`role`"
144
+ msgstr "Business User"
145
+
137
146
  msgid "By`user`"
138
147
  msgstr "By"
139
148
 
@@ -248,8 +257,8 @@ msgstr "Delete"
248
257
  msgid "Delete`tenant`"
249
258
  msgstr "Delete"
250
259
 
251
- msgid "Device management`KEEP_ORIGINAL`"
252
- msgstr "Device management"
260
+ msgid "Device User`role`"
261
+ msgstr "Device User"
253
262
 
254
263
  msgid "Devices and sensors`icons-category`"
255
264
  msgstr "Devices and sensors"
@@ -293,6 +302,13 @@ msgstr "Enabled"
293
302
  msgid "Enabled`trusted certificate status`"
294
303
  msgstr "Enabled"
295
304
 
305
+ msgid ""
306
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
307
+ " device is compromised, attackers might have extended access to the platform."
308
+ msgstr ""
309
+ "Especially changing the global role \"Device User\" can lead to a security hole, for example, if a\n"
310
+ " device is compromised, attackers might have extended access to the platform."
311
+
296
312
  msgid "External`application`"
297
313
  msgstr "External"
298
314
 
@@ -507,6 +523,9 @@ msgstr "REVOKED"
507
523
  msgid "Rates`time intervals`"
508
524
  msgstr "Rates"
509
525
 
526
+ msgid "Reader User`role`"
527
+ msgstr "Reader User"
528
+
510
529
  msgid "Reboot`verb`"
511
530
  msgstr "Reboot"
512
531
 
@@ -1101,6 +1101,9 @@ msgstr "Administrador"
1101
1101
  msgid "Admin API version"
1102
1102
  msgstr "Versión de Admin API"
1103
1103
 
1104
+ msgid "Admin User`role`"
1105
+ msgstr "Usuario administrador"
1106
+
1104
1107
  msgid "Administration"
1105
1108
  msgstr "Administration"
1106
1109
 
@@ -1640,6 +1643,9 @@ msgstr "Ascendente"
1640
1643
  msgid "Asset"
1641
1644
  msgstr "Activo"
1642
1645
 
1646
+ msgid "Asset Manager`role`"
1647
+ msgstr "Gestor de activos"
1648
+
1643
1649
  msgid "Asset notes"
1644
1650
  msgstr "Notas de activo"
1645
1651
 
@@ -2140,6 +2146,9 @@ msgstr "Las operaciones en masa se mostrarán aquí"
2140
2146
  msgid "Bulk registration"
2141
2147
  msgstr "Registro masivo"
2142
2148
 
2149
+ msgid "Business User`role`"
2150
+ msgstr "Usuario empresarial"
2151
+
2143
2152
  msgid "Business rules"
2144
2153
  msgstr "Reglas de negocio"
2145
2154
 
@@ -4730,6 +4739,9 @@ msgstr "Información de dispositivo"
4730
4739
  msgid "Device Management User"
4731
4740
  msgstr "Usuario de Device management"
4732
4741
 
4742
+ msgid "Device User`role`"
4743
+ msgstr "Usuario del dispositivo"
4744
+
4733
4745
  msgid "Device added to group"
4734
4746
  msgstr "Dispositivo agregado al grupo"
4735
4747
 
@@ -5773,10 +5785,10 @@ msgid "Escalation steps"
5773
5785
  msgstr "Pasos de escalamiento"
5774
5786
 
5775
5787
  msgid ""
5776
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5788
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5777
5789
  " device is compromised, attackers might have extended access to the platform."
5778
5790
  msgstr ""
5779
- "En particular, cambiar el rol global \"dispositivos\" puede crear una brecha de seguridad. P. ej., si un dispositivo\n"
5791
+ "En particular, cambiar el rol global \"Usuario del dispositivo\" puede crear una brecha de seguridad. P. ej., si un dispositivo\n"
5780
5792
  " queda expuesto, los atacantes pueden tener mayor acceso a la plataforma."
5781
5793
 
5782
5794
  msgid "Event"
@@ -11547,6 +11559,9 @@ msgstr "Lectura y escritura en salida de proceso"
11547
11559
  msgid "Reader"
11548
11560
  msgstr "Lector"
11549
11561
 
11562
+ msgid "Reader User`role`"
11563
+ msgstr "Usuario lector"
11564
+
11550
11565
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11551
11566
  msgstr "El sondeo de preparación no ha podido efectuarse: {{requestMethod}} {{uri}}: {{protocol}}. La solicitud se ha cancelado mientras se esperaba la conexión (Client.Timeout sobrepasado mientras a espera de los encabezados)."
11552
11567
 
@@ -1101,6 +1101,9 @@ msgstr "Administrateur"
1101
1101
  msgid "Admin API version"
1102
1102
  msgstr "Version API Admin"
1103
1103
 
1104
+ msgid "Admin User`role`"
1105
+ msgstr "Utilisateur Admin"
1106
+
1104
1107
  msgid "Administration"
1105
1108
  msgstr "Administration"
1106
1109
 
@@ -1640,6 +1643,9 @@ msgstr "Croissant"
1640
1643
  msgid "Asset"
1641
1644
  msgstr "Actif"
1642
1645
 
1646
+ msgid "Asset Manager`role`"
1647
+ msgstr "Gestionnaire d'actifs"
1648
+
1643
1649
  msgid "Asset notes"
1644
1650
  msgstr "Notes de l'actif"
1645
1651
 
@@ -2140,6 +2146,9 @@ msgstr "Les opérations en masse seront affichées ici"
2140
2146
  msgid "Bulk registration"
2141
2147
  msgstr "Enregistrement en masse"
2142
2148
 
2149
+ msgid "Business User`role`"
2150
+ msgstr "Utilisateur professionnel"
2151
+
2143
2152
  msgid "Business rules"
2144
2153
  msgstr "Règles de conduite"
2145
2154
 
@@ -4730,6 +4739,9 @@ msgstr "Informations sur l'appareil"
4730
4739
  msgid "Device Management User"
4731
4740
  msgstr "Utilisateur de la gestion des utilisateurs"
4732
4741
 
4742
+ msgid "Device User`role`"
4743
+ msgstr "Utilisateur de l'appareil"
4744
+
4733
4745
  msgid "Device added to group"
4734
4746
  msgstr "Appareil ajouté au groupe"
4735
4747
 
@@ -5773,10 +5785,10 @@ msgid "Escalation steps"
5773
5785
  msgstr "Étapes de l'escalade"
5774
5786
 
5775
5787
  msgid ""
5776
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5788
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5777
5789
  " device is compromised, attackers might have extended access to the platform."
5778
5790
  msgstr ""
5779
- "La modification du rôle global \"appareils\" peut particulièrement entraîner une faille de sécurité, par exemple si\n"
5791
+ "La modification du rôle global \"Utilisateur de l'appareil\" peut particulièrement entraîner une faille de sécurité, par exemple si\n"
5780
5792
  " un appareil est compromis, des personnes malveillantes peuvent avoir un accès étendu à la plateforme."
5781
5793
 
5782
5794
  msgid "Event"
@@ -11547,6 +11559,9 @@ msgstr "Lecture-écriture sur la sortie de processus"
11547
11559
  msgid "Reader"
11548
11560
  msgstr "Lecteur"
11549
11561
 
11562
+ msgid "Reader User`role`"
11563
+ msgstr "Lecteur Utilisateur"
11564
+
11550
11565
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11551
11566
  msgstr "Échec de la sonde de disponibilité : {{requestMethod}} {{uri}}: {{protocol}}: la requête a été annulée pendant l'attente de la connexion (Client.Timeout dépassé lors de l'attente des en-têtes)."
11552
11567
 
@@ -1081,6 +1081,9 @@ msgstr "管理者"
1081
1081
  msgid "Admin API version"
1082
1082
  msgstr "管理 API バージョン"
1083
1083
 
1084
+ msgid "Admin User`role`"
1085
+ msgstr "管理者ユーザー"
1086
+
1084
1087
  msgid "Administration"
1085
1088
  msgstr "管理"
1086
1089
 
@@ -1619,6 +1622,9 @@ msgstr "昇順"
1619
1622
  msgid "Asset"
1620
1623
  msgstr "アセット"
1621
1624
 
1625
+ msgid "Asset Manager`role`"
1626
+ msgstr "アセットマネージャー"
1627
+
1622
1628
  msgid "Asset notes"
1623
1629
  msgstr "アセット注記"
1624
1630
 
@@ -2117,6 +2123,9 @@ msgstr "一括操作はここに表示されます"
2117
2123
  msgid "Bulk registration"
2118
2124
  msgstr "一括登録"
2119
2125
 
2126
+ msgid "Business User`role`"
2127
+ msgstr "ビジネスユーザー"
2128
+
2120
2129
  msgid "Business rules"
2121
2130
  msgstr "ビジネス ルール"
2122
2131
 
@@ -4703,6 +4712,9 @@ msgstr "デバイス情報"
4703
4712
  msgid "Device Management User"
4704
4713
  msgstr "デバイス管理ユーザー"
4705
4714
 
4715
+ msgid "Device User`role`"
4716
+ msgstr "デバイスユーザー"
4717
+
4706
4718
  msgid "Device added to group"
4707
4719
  msgstr "グループに追加されたデバイス"
4708
4720
 
@@ -5760,10 +5772,10 @@ msgid "Escalation steps"
5760
5772
  msgstr "エスカレーション ステップ"
5761
5773
 
5762
5774
  msgid ""
5763
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5775
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5764
5776
  " device is compromised, attackers might have extended access to the platform."
5765
5777
  msgstr ""
5766
- "特にグローバル ロール \"デバイス\" を変更すると、セキュリティ ホールを引き起こす可能性があります。\n"
5778
+ "特に、グローバルロール \"デバイスユーザー\"を変更すると、セキュリティホールにつながる可能性があります。\n"
5767
5779
  " 例えば、デバイスが攻撃された場合、攻撃者はプラットフォームへ広範にわたりアクセスできるようになる可能性があります。"
5768
5780
 
5769
5781
  msgid "Event"
@@ -11526,6 +11538,9 @@ msgstr "プロセス出力で読み取り/書き込み"
11526
11538
  msgid "Reader"
11527
11539
  msgstr "リーダー"
11528
11540
 
11541
+ msgid "Reader User`role`"
11542
+ msgstr "リーダーユーザー"
11543
+
11529
11544
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11530
11545
  msgstr "Readiness probe は失敗しました: {{requestMethod}} {{uri}}: {{protocol}}: 接続(ヘッダー待機中に Client.Timeout が超過)の待機中にリクエストがキャンセルされました。"
11531
11546
 
@@ -1101,6 +1101,9 @@ msgstr "Admin"
1101
1101
  msgid "Admin API version"
1102
1102
  msgstr "Beheer-API-versie"
1103
1103
 
1104
+ msgid "Admin User`role`"
1105
+ msgstr "Beheergebruiker"
1106
+
1104
1107
  msgid "Administration"
1105
1108
  msgstr "Beheer"
1106
1109
 
@@ -1640,6 +1643,9 @@ msgstr "Oplopend"
1640
1643
  msgid "Asset"
1641
1644
  msgstr "Asset"
1642
1645
 
1646
+ msgid "Asset Manager`role`"
1647
+ msgstr "Asset-beheerder"
1648
+
1643
1649
  msgid "Asset notes"
1644
1650
  msgstr "Asset-opmerkingen"
1645
1651
 
@@ -2140,6 +2146,9 @@ msgstr "Bulkbewerkingen zullen hier worden weergegeven"
2140
2146
  msgid "Bulk registration"
2141
2147
  msgstr "Bulkregistratie"
2142
2148
 
2149
+ msgid "Business User`role`"
2150
+ msgstr "Bedrijfsgebruiker"
2151
+
2143
2152
  msgid "Business rules"
2144
2153
  msgstr "Bedrijfsregels"
2145
2154
 
@@ -4730,6 +4739,9 @@ msgstr "Apparaat-info"
4730
4739
  msgid "Device Management User"
4731
4740
  msgstr "Apparaatbeheer gebruiker"
4732
4741
 
4742
+ msgid "Device User`role`"
4743
+ msgstr "Apparaatgebruiker"
4744
+
4733
4745
  msgid "Device added to group"
4734
4746
  msgstr "Apparaat toegevoegd aan groep"
4735
4747
 
@@ -5773,10 +5785,10 @@ msgid "Escalation steps"
5773
5785
  msgstr "Escalatiestappen"
5774
5786
 
5775
5787
  msgid ""
5776
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5788
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5777
5789
  " device is compromised, attackers might have extended access to the platform."
5778
5790
  msgstr ""
5779
- "Vooral als de globale rol \"apparaten\" wordt gewijzigd, kan dat leiden tot een gat in de beveiliging. \n"
5791
+ "Vooral als de globale rol \"Apparaatgebruiker\" wordt gewijzigd, kan dat leiden tot een gat in de beveiliging. \n"
5780
5792
  " Als bijvoorbeeld een apparaat is aangetast, kunnen aanvallers uitgebreide toegang tot het platform hebben."
5781
5793
 
5782
5794
  msgid "Event"
@@ -11546,6 +11558,9 @@ msgstr "Lezen-schrijven bij procesuitvoer"
11546
11558
  msgid "Reader"
11547
11559
  msgstr "Lezer"
11548
11560
 
11561
+ msgid "Reader User`role`"
11562
+ msgstr "Lezer-gebruiker"
11563
+
11549
11564
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11550
11565
  msgstr "Gereedheidstest mislukt: {{requestMethod}} {{uri}}: {{protocol}}: verzoek bij het wachten op verbinding geannuleerd (Client.Timeout overschreden tijdens wachten op koppen)."
11551
11566
 
@@ -1120,6 +1120,9 @@ msgstr "Administrator"
1120
1120
  msgid "Admin API version"
1121
1121
  msgstr "Wersja interfejsu Admin API"
1122
1122
 
1123
+ msgid "Admin User`role`"
1124
+ msgstr "Administrator"
1125
+
1123
1126
  msgid "Administration"
1124
1127
  msgstr "Administracja"
1125
1128
 
@@ -1659,6 +1662,9 @@ msgstr "Rosnąco"
1659
1662
  msgid "Asset"
1660
1663
  msgstr "Zasób"
1661
1664
 
1665
+ msgid "Asset Manager`role`"
1666
+ msgstr "Menedżer zasobów"
1667
+
1662
1668
  msgid "Asset notes"
1663
1669
  msgstr "Uwagi dotyczące zasobów"
1664
1670
 
@@ -2160,6 +2166,9 @@ msgstr "W tym miejscu będą wyświetlane operacje zbiorcze"
2160
2166
  msgid "Bulk registration"
2161
2167
  msgstr "Rejestracja zbiorcza"
2162
2168
 
2169
+ msgid "Business User`role`"
2170
+ msgstr "Użytkownik biznesowy"
2171
+
2163
2172
  msgid "Business rules"
2164
2173
  msgstr "Reguły biznesowe"
2165
2174
 
@@ -4751,6 +4760,9 @@ msgstr "Informacje o urządzeniu"
4751
4760
  msgid "Device Management User"
4752
4761
  msgstr "Użytkownik Zarządzania urządzeniami"
4753
4762
 
4763
+ msgid "Device User`role`"
4764
+ msgstr "Użytkownik urządzenia"
4765
+
4754
4766
  msgid "Device added to group"
4755
4767
  msgstr "Urządzenie zostało dodane do grupy"
4756
4768
 
@@ -5794,10 +5806,10 @@ msgid "Escalation steps"
5794
5806
  msgstr "Kroki eskalacji"
5795
5807
 
5796
5808
  msgid ""
5797
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5809
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5798
5810
  " device is compromised, attackers might have extended access to the platform."
5799
5811
  msgstr ""
5800
- "W szczególności zmiana roli globalnej „urządzenia” może doprowadzić do zagrożenia bezpieczeństwa. Jeśli na przykład\n"
5812
+ "W szczególności zmiana roli globalnej „Użytkownik urządzenia” może doprowadzić do zagrożenia bezpieczeństwa. Jeśli na przykład\n"
5801
5813
  " w urządzeniu powstała luka w zabezpieczeniach, atakujący mogą uzyskać rozszerzony dostęp do platformy."
5802
5814
 
5803
5815
  msgid "Event"
@@ -11570,6 +11582,9 @@ msgstr "Odczyt-zapis dotyczący danych wyjściowych procesu"
11570
11582
  msgid "Reader"
11571
11583
  msgstr "Czytelnik"
11572
11584
 
11585
+ msgid "Reader User`role`"
11586
+ msgstr "Czytelnik"
11587
+
11573
11588
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11574
11589
  msgstr "Niepowodzenie sondy gotowości: {{requestMethod}} {{uri}}: {{protocol}}: żądanie zostało anulowane podczas oczekiwania na połączenie (przekroczono czas Client.Timeout w trakcie oczekiwania na nagłówki)."
11575
11590
 
@@ -1101,6 +1101,9 @@ msgstr "Admin"
1101
1101
  msgid "Admin API version"
1102
1102
  msgstr "Versão da API de administração"
1103
1103
 
1104
+ msgid "Admin User`role`"
1105
+ msgstr "Usuário administrador"
1106
+
1104
1107
  msgid "Administration"
1105
1108
  msgstr "Administração"
1106
1109
 
@@ -1640,6 +1643,9 @@ msgstr "Ascendente"
1640
1643
  msgid "Asset"
1641
1644
  msgstr "Ativo"
1642
1645
 
1646
+ msgid "Asset Manager`role`"
1647
+ msgstr "Gerente de ativos"
1648
+
1643
1649
  msgid "Asset notes"
1644
1650
  msgstr "Notas sobre ativos"
1645
1651
 
@@ -2140,6 +2146,9 @@ msgstr "As operações em massa serão exibidas aqui"
2140
2146
  msgid "Bulk registration"
2141
2147
  msgstr "Registro em massa"
2142
2148
 
2149
+ msgid "Business User`role`"
2150
+ msgstr "Usuário comercial"
2151
+
2143
2152
  msgid "Business rules"
2144
2153
  msgstr "Regras de negócio"
2145
2154
 
@@ -4730,6 +4739,9 @@ msgstr "Informações do dispositivo"
4730
4739
  msgid "Device Management User"
4731
4740
  msgstr "Usuário de gerenciamento de dispositivos"
4732
4741
 
4742
+ msgid "Device User`role`"
4743
+ msgstr "Usuário do dispositivo"
4744
+
4733
4745
  msgid "Device added to group"
4734
4746
  msgstr "Dispositivo adicionado ao grupo"
4735
4747
 
@@ -5773,10 +5785,10 @@ msgid "Escalation steps"
5773
5785
  msgstr "Etapas de escalonamento"
5774
5786
 
5775
5787
  msgid ""
5776
- "Especially changing the global role \"devices\" can lead to a security hole, for example, if a\n"
5788
+ "Especially changing the global role \"Device User`role`\" can lead to a security hole, for example, if a\n"
5777
5789
  " device is compromised, attackers might have extended access to the platform."
5778
5790
  msgstr ""
5779
- "Alterar o papel global \"dispositivos\" pode, especialmente, provocar uma falha de segurança, por exemplo, se um\n"
5791
+ "Alterar o papel global \"Usuário do dispositivo\" pode, especialmente, provocar uma falha de segurança, por exemplo, se um\n"
5780
5792
  " dispositivo for comprometido, os invasores podem ter amplo acesso à plataforma."
5781
5793
 
5782
5794
  msgid "Event"
@@ -11546,6 +11558,9 @@ msgstr "Leitura-gravação na saída de processo"
11546
11558
  msgid "Reader"
11547
11559
  msgstr "Leitor"
11548
11560
 
11561
+ msgid "Reader User`role`"
11562
+ msgstr "Usuário leitor"
11563
+
11549
11564
  msgid "Readiness probe failed: {{requestMethod}} {{uri}}: {{protocol}}: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)."
11550
11565
  msgstr "Falha na investigação de preparação: {{requestMethod}} {{uri}}: {{protocol}}: solicitação cancelada enquanto aguardava a conexão (Client.Timeout foi excedido enquanto aguardava cabeçalhos)."
11551
11566
 
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,t,n){var l=this,i=(_.assign(l,{onToggleDropdown:function(){delete l.textFilter,i=_.map(l.itemsSelected,_.clone)},allSelected:o,toggleSelectAll:function(){i=o()?[]:_.clone(r())},apply:function(){l.applying=!0,e.when(l.onApply({items:_.map(r(i))})).then(function(){l.isDropDownOpen=!1}).finally(function(){l.applying=!1})},toggle:function(e){c(e)?_.remove(i,{id:e.id}):i.push(e)},isSelected:c,$onChanges:function(e){e.itemsSelected&&(l.displayLabel=_(l.itemsSelected).sortBy(a).map(a).value().join(", "))},translateName:a,placeholder:function(){return _.isUndefined(l.textPlaceholder)?"----":l.textPlaceholder}}),[]);function o(){return _.every(r(),c)}function c(e){return _.some(i,{id:e.id})}function r(e){return t("filter")(e||l.items,l.textFilter)}function a(e){return n.getString(e.name)}}e.$inject=["$q","$filter","gettextCatalog"],angular.module("c8y.ui").component("c8yItemSelector",{templateUrl:":::PLUGIN_PATH:::/ui/itemSelector/itemSelector.html",bindings:{textPlaceholder:"@",textApply:"@",styleButton:"<",items:"<",itemsSelected:"<",onApply:"&",dropdownMenuClasses:"<",disabled:"=ngDisabled"},controller:e,controllerAs:"vm"})}();
1
+ "use strict";!function(){function e(e,t,n,l){var i=this,o=(_.assign(i,{onToggleDropdown:function(){delete i.textFilter,o=_.map(i.itemsSelected,_.clone)},allSelected:r,toggleSelectAll:function(){o=r()?[]:_.clone(a())},apply:function(){i.applying=!0,e.when(i.onApply({items:_.map(a(o))})).then(function(){i.isDropDownOpen=!1}).finally(function(){i.applying=!1})},toggle:function(e){c(e)?_.remove(o,{id:e.id}):o.push(e)},isSelected:c,$onChanges:function(e){e.itemsSelected&&(i.displayLabel=_(i.itemsSelected).sortBy(s).map(s).value().join(", "))},translateName:s,placeholder:function(){return _.isUndefined(i.textPlaceholder)?"----":i.textPlaceholder},getNameLabel:l.getName}),[]);function r(){return _.every(a(),c)}function c(e){return _.some(o,{id:e.id})}function a(e){return t("filter")(e||i.items,i.textFilter)}function s(e){return n.getString(l.getName(e))}}e.$inject=["$q","$filter","gettextCatalog","c8yPropertyValueTransformService"],angular.module("c8y.ui").component("c8yItemSelector",{templateUrl:":::PLUGIN_PATH:::/ui/itemSelector/itemSelector.html",bindings:{textPlaceholder:"@",textApply:"@",styleButton:"<",items:"<",itemsSelected:"<",onApply:"&",dropdownMenuClasses:"<",disabled:"=ngDisabled"},controller:e,controllerAs:"vm"})}();
@@ -71,7 +71,7 @@
71
71
  class="multiselect-item"
72
72
  >
73
73
  <label
74
- title="{{ ::item.name | translate }}"
74
+ title="{{ ::vm.getNameLabel(item) | translate }}"
75
75
  class="c8y-checkbox input-sm text-truncate"
76
76
  ng-click="::vm.toggle(item); $event.preventDefault()"
77
77
  data-cy="c8y-item-selector--item"
@@ -83,7 +83,7 @@
83
83
  ng-click="::vm.toggle(item); $event.stopPropagation()"
84
84
  />
85
85
  <span></span>
86
- <span class="label-text text-truncate" ng-bind="::item.name | translate"></span>
86
+ <span class="label-text text-truncate" ng-bind="::vm.getNameLabel(item) | translate"></span>
87
87
  </label>
88
88
  </li>
89
89
  </ul>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1019.24.0",
3
+ "version": "1019.24.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -1 +1 @@
1
- "use strict";!function(){function e(t,e,o,i,n,l){var s=this;function r(e){s.role=e,a();e=e.roles;e=(e||{}).references||[],s.selectedPermissions=_.map(e,"role.id")}function a(){i.listGlobalPermissions().then(c)}function c(e){s.permissions=e}function u(){s.globalRoleDetailForm.$setDirty()}function f(e){return s.saving=!0,e.finally(function(){s.saving=!1}),e}_.assign(s,{$onInit:function(){(function(){var e=s.id,n=s.duplicateId;("new"===e?function(e){var n=i.newGlobalRole(e);return n.then(function(){e&&l(u)}),n}(n):function(e){return o.global.detail(e).then(t.getResData)}(e)).then(r)})(),a()},STRINGS:i.STRINGS,helpLink:n.getUserGuideLink(i.STRINGS.LINKS.ROLES_INVENTORY),onSaveName:function(e){return f(i.saveGlobalRoleName(s.role,e))},cancel:i.list,save:function(){return f(i.saveGlobalRole(s.role,s.selectedPermissions))},hasAppPermissions:function(){var t=/^ROLE_APPLICATION/;return _.some(s.selectedPermissions,function(e,n){return e&&t.test(n)})},onSelectedRolesChange:function(e){s.selectedPermissions=e,u()}})}e.$inject=["c8yBase","c8yPermissions","c8yRoles","c8yRolesUi","c8yDocs","$timeout"],angular.module("c8y.roles").component("c8yRoleDetailGlobal",{templateUrl:":::PLUGIN_PATH:::/detail/roleDetailGlobal.html",bindings:{id:"<",duplicateId:"<",tabName:"<"},controllerAs:"vm",controller:e})}();
1
+ "use strict";!function(){function e(t,e,o,i,n,l,s){var r=this;function a(e){r.role=e,c();e=e.roles;e=(e||{}).references||[],r.selectedPermissions=_.map(e,"role.id")}function c(){i.listGlobalPermissions().then(u)}function u(e){r.permissions=e}function m(){r.globalRoleDetailForm.$setDirty()}function f(e){return r.saving=!0,e.finally(function(){r.saving=!1}),e}_.assign(r,{$onInit:function(){(function(){var e=r.id,n=r.duplicateId;("new"===e?function(e){var n=i.newGlobalRole(e);return n.then(function(){e&&s(m)}),n}(n):function(e){return o.global.detail(e).then(t.getResData)}(e)).then(a)})(),c()},STRINGS:i.STRINGS,helpLink:l.getUserGuideLink(i.STRINGS.LINKS.ROLES_INVENTORY),onSaveName:function(e){return f(i.saveGlobalRoleName(r.role,e))},cancel:i.list,save:function(){return f(i.saveGlobalRole(r.role,r.selectedPermissions))},hasAppPermissions:function(){var t=/^ROLE_APPLICATION/;return _.some(r.selectedPermissions,function(e,n){return e&&t.test(n)})},getRoleName:n.getName,onSelectedRolesChange:function(e){r.selectedPermissions=e,m()}})}e.$inject=["c8yBase","c8yPermissions","c8yRoles","c8yRolesUi","c8yPropertyValueTransformService","c8yDocs","$timeout"],angular.module("c8y.roles").component("c8yRoleDetailGlobal",{templateUrl:":::PLUGIN_PATH:::/detail/roleDetailGlobal.html",bindings:{id:"<",duplicateId:"<",tabName:"<"},controllerAs:"vm",controller:e})}();
@@ -1,4 +1,4 @@
1
- <c8y-ui-title-set title="::vm.role.name"></c8y-ui-title-set>
1
+ <c8y-ui-title-set title="::vm.getRoleName(vm.role)"></c8y-ui-title-set>
2
2
 
3
3
  <c8y-breadcrumbs-set>
4
4
  <c8y-breadcrumbs-item
@@ -1 +1 @@
1
- "use strict";!function(){function n(t,e,o,i,n){var a=this;function r(n){return a.saving=!0,n.finally(function(){a.saving=!1}),n}function l(n){return"SUPPORT"===n.name&&!a.isTopTenant}_.assign(a,{$onInit:function(){!function(){var n=a.id,e=a.duplicateId;("new"===n?i.newInventoryRole(e):o.detail(n).then(t.getResData)).then(function(n){a.role=n})}()},$onChanges:function(n){n.isTopTenant&&(a.permissionScopes=function(){var n=e.SCOPES.values();return _.reject(n,l)}())},STRINGS:i.STRINGS,helpLink:n.getUserGuideLink(i.STRINGS.LINKS.ROLES_INVENTORY),onSaveName:function(n){return r(i.saveInventoryRoleName(a.role,n))},cancel:i.list,save:function(){return r(i.saveInventoryRole(a.role))}})}n.$inject=["c8yBase","c8yPermissions","c8yRoles","c8yRolesUi","c8yDocs"],angular.module("c8y.roles").component("c8yRoleDetailInventory",{templateUrl:":::PLUGIN_PATH:::/detail/roleDetailInventory.html",bindings:{id:"<",duplicateId:"<",isTopTenant:"<",tabName:"<"},controllerAs:"vm",controller:n})}();
1
+ "use strict";!function(){function e(t,n,o,i,e,r){var a=this;function l(e){return a.saving=!0,e.finally(function(){a.saving=!1}),e}function c(e){return"SUPPORT"===e.name&&!a.isTopTenant}_.assign(a,{$onInit:function(){!function(){var e=a.id,n=a.duplicateId;("new"===e?i.newInventoryRole(n):o.detail(e).then(t.getResData)).then(function(e){a.role=e})}()},$onChanges:function(e){e.isTopTenant&&(a.permissionScopes=function(){var e=n.SCOPES.values();return _.reject(e,c)}())},STRINGS:i.STRINGS,helpLink:r.getUserGuideLink(i.STRINGS.LINKS.ROLES_INVENTORY),onSaveName:function(e){return l(i.saveInventoryRoleName(a.role,e))},cancel:i.list,save:function(){return l(i.saveInventoryRole(a.role))},getRoleName:e.getName})}e.$inject=["c8yBase","c8yPermissions","c8yRoles","c8yRolesUi","c8yPropertyValueTransformService","c8yDocs"],angular.module("c8y.roles").component("c8yRoleDetailInventory",{templateUrl:":::PLUGIN_PATH:::/detail/roleDetailInventory.html",bindings:{id:"<",duplicateId:"<",isTopTenant:"<",tabName:"<"},controllerAs:"vm",controller:e})}();
@@ -1,4 +1,4 @@
1
- <c8y-ui-title-set title="::vm.role.name"></c8y-ui-title-set>
1
+ <c8y-ui-title-set title="::vm.getRoleName(vm.role)"></c8y-ui-title-set>
2
2
 
3
3
  <c8y-breadcrumbs-set>
4
4
  <c8y-breadcrumbs-item
@@ -9,7 +9,7 @@
9
9
  You are about to save changes in the global role which might affect security.
10
10
  </span>
11
11
  <span ng-if="vm.devicesWarning" translate>
12
- Especially changing the global role "devices" can lead to a security hole, for example, if a
12
+ Especially changing the global role "Device User`role`" can lead to a security hole, for example, if a
13
13
  device is compromised, attackers might have extended access to the platform.
14
14
  </span>
15
15
  <span translate>
@@ -1 +1 @@
1
- "use strict";!function(){function e(n,o){var t=this;_.assign(t,{remove:function(e){o.removeAfterConfirmation(e).then(function(){t.onRemove({role:e})})},duplicate:o.duplicate,edit:o.edit,isUndeletable:o.isUndeletable,$onInit:function(){o.canCreate().then(function(e){t.canCreate=e})}}),n.loadNext=function(){t.onLoadNext()},n.$watch("vm.roles.paging",function(e){t.roles&&(t.roles=t.roles.sort(function(e,n){return e.name.localeCompare(n.name,void 0,{numeric:!0})})),n.paging=e,_.forEach(t.roles,function(e){e.name=e.name&&_.trim(e.name),e.description=e.description&&_.trim(e.description)})})}e.$inject=["$scope","c8yRolesUi"],angular.module("c8y.roles").component("c8yRolesList",{templateUrl:":::PLUGIN_PATH:::/list/rolesList.html",bindings:{tabName:"<",roles:"<",addRole:"&",onRemove:"&",helpText:"<",onLoadNext:"&"},controllerAs:"vm",controller:e})}();
1
+ "use strict";!function(){function e(n,o,e){var t=this;_.assign(t,{remove:function(e){o.removeAfterConfirmation(e).then(function(){t.onRemove({role:e})})},duplicate:o.duplicate,edit:o.edit,isUndeletable:o.isUndeletable,getRoleName:e.getName,$onInit:function(){o.canCreate().then(function(e){t.canCreate=e})}}),n.loadNext=function(){t.onLoadNext()},n.$watch("vm.roles.paging",function(e){t.roles&&(t.roles=t.roles.sort(function(e,n){return e.name.localeCompare(n.name,void 0,{numeric:!0})})),n.paging=e,_.forEach(t.roles,function(e){e.name=e.name&&_.trim(e.name),e.description=e.description&&_.trim(e.description)})})}e.$inject=["$scope","c8yRolesUi","c8yPropertyValueTransformService"],angular.module("c8y.roles").component("c8yRolesList",{templateUrl:":::PLUGIN_PATH:::/list/rolesList.html",bindings:{tabName:"<",roles:"<",addRole:"&",onRemove:"&",helpText:"<",onLoadNext:"&"},controllerAs:"vm",controller:e})}();
@@ -226,9 +226,9 @@
226
226
  </div>
227
227
  <div
228
228
  class="card-title text-truncate"
229
- title="{{::role.name | translate}}"
229
+ title="{{::vm.getRoleName(role) | translate}}"
230
230
  >
231
- <span>{{::role.name | translate}}</span>
231
+ <span>{{::vm.getRoleName(role) | translate}}</span>
232
232
  </div>
233
233
  </div>
234
234
  <div class="card-block card-column-70">
@@ -181,7 +181,7 @@
181
181
  title="{{ simulator.state | translate | lowercase }}"
182
182
  ng-switch-default
183
183
  >
184
- {{ simulator.state.toLowerCase() | translate }}
184
+ {{ simulator.state | translate | lowercase }}
185
185
  </span>
186
186
  </label>
187
187
  </div>
@@ -1 +1 @@
1
- "use strict";!function(){function e(a,D,c,e,f,d,l,E,n,r,t,g,h,s,p,m){var o,i,u,w=this,v=(_.assign(w,{cancel:g.gotoList,shouldDisableGlobalRolesCheckbox:$,isUserAndRolesFormPristine:A,isUserFormInvalid:U,isRolesFormInvalid:I,canSave:function(){return!(c.saving||A()||U()||I())}}),e.userId),R=["business"];function N(){v?d.detail(v).then(function(e){return e.data}).then(T).then(function(){return d.getUserTfaSettings(c.user).then(f.getResData).then(function(e){c.userTfaEnforced=!!e.tfaEnforced})}):(T({enabled:c.isNew=!0}),G(m("New user"),!0))}function T(e){i=e.email,e.devicePermissions=e.devicePermissions||{},c.user=e,c._groups=O(e),c.password.showPassword=c.isNew,c.hasExternalOrigin=d.hasExternalOrigin(e),c.isNew&&(_.forEach(c.groups,function(e){_.includes(R,e.name)&&(c._groups[e.id]=!0)}),u)&&E.warning(g.LOCAL_USER_TEXT),c.hasExternalOrigin&&s.isSsoClearingUserRolesOnEveryLogin().then(function(e){return c.userCanEditRoles=!e,c.userCanEditRoles}).then(function(e){e?E.warning(g.EXTERNAL_ORIGIN_DYNAMIC_ACCESS_MAPPING_EXCEPTION_TEXT):E.warning(g.EXTERNAL_ORIGIN_TEXT)})}function A(){return c.forms.userForm.$pristine&&c.forms.rolesForm.$pristine}function U(){return!!(M(c.currentUser,c.user)&&!c.hasExternalOrigin)&&c.forms.userForm.$invalid}function I(){return!$()&&c.forms.rolesForm.$invalid}function O(e){return _.reduce(_.get(e,"groups.references"),function(e,n){return e[n.group.id]=!0,e},{})}function y(e){c.groups=e}function C(e){c.currentUser=e}function L(r,e){function n(){return E.success(m("User saved."))}var t=1<arguments.length&&void 0!==e?e:"",e=(c.saving=!0,g.gotoList),s=!(r.id&&!r.groups),o=_(c._groups).map(function(e,n){return e&&parseInt(n,10)}).filter().value(),i=s?function(){return l.updateGroups(0<arguments.length&&void 0!==arguments[0]?arguments[0]:r,o)}:function(){return a.resolve()},s=c.forms.rolesForm.$dirty,u=c.password.showPassword;try{(c.hasExternalOrigin?g.warnAboutUserLogOutIfNeeded(r,{rolesChanged:s,passwordChanged:u}).then(function(){return i()}):g.warnAboutUserLogOutIfNeeded(r,{rolesChanged:s,passwordChanged:u}).then(function(){return r.password&&!c.isNew?d.changePassword(r,r.password,t):a.resolve()}).then(function(){return d.current()}).then(function(e){return _.isEqual(e.userName,r.userName)}).then(function(e){var n;return p.isActivatedFor("units-conversion")&&(e&&(n=r,n=_.get(r,"measurementUnit.value"),h.set("unit",n)),_.unset(r,"measurementUnit")),e}).then(function(e){return d.save(_.omit(r,c.isNew?["measurementUnit"]:["measurementUnit","password"]),e)}).then(f.getResData).then(function(e){return i(e)}).then(function(){return d.setUserTfaSettings(r,{tfaEnforced:!!c.userTfaEnforced})})).then(n).then(e).finally(function(){c.saving=!1})}catch(e){E.danger(e.message),c.saving=!1}}function G(){return n.changeTitle({title:0<arguments.length&&void 0!==arguments[0]?arguments[0]:""},{skipTitleTranslation:!(1<arguments.length&&void 0!==arguments[1]&&arguments[1])})}function P(e){return d.hasRole(e,"ROLE_USER_MANAGEMENT_ADMIN")||d.hasRole(e,"ROLE_USER_MANAGEMENT_CREATE")}function M(e,n){return!(!e||!n)&&(!n.id||(e.id===n.id?d.hasRole(e,"ROLE_USER_MANAGEMENT_OWN_ADMIN"):d.hasRole(e,"ROLE_USER_MANAGEMENT_ADMIN")||d.hasRole(e,"ROLE_USER_MANAGEMENT_CREATE")))}function S(e){return _.get(c.user,"owner")&&o&&!o[e.id]}function $(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=P(c.currentUser),e=!e||!S(e),r=!!c.userCanEditRoles||!c.hasExternalOrigin;return!(n&&e&&r)}c.checkPassword=function(n){var e=!c.isNew,r=c.password.showPassword||function(e){return e.email!==i}(n);return e&&r?t.currentPassword().then(function(e){return L(n,e)}).catch(function(e){e&&E.danger(f.getResErrorMessage(e)),N()}):L(n)},c.$watch("user.userName",G),c.$watch("user.owner",function(e){e?d.detail(e).then(f.getResData).then(function(e){o=O(e),_.forEach(c._groups,function(e,n){c._groups[n]=e&&o[n]})}):o=null}),c.$watch("_groups",function(e){c.enforcedGroup&&(c.topLevelTfaEnforced=e[c.enforcedGroup.id])},!0),c.canEditUser=M,c.canEditUserGroups=P,c.canActivateUser=function(e,n){return!(!e||!n)&&e.id!==n.id},c.forms={},c.password={},c.saving=!1,c.showAcl=function(){var e=_.get(c.user,"devicePermissions"),e=_.keys(e);return f.getFlag("deprecated")||e.length},c.restrictedByOwner=S,c.$on("$destroy",function(){E.remove({text:g.EXTERNAL_ORIGIN_TEXT,type:"warning"}),E.remove({text:g.EXTERNAL_ORIGIN_DYNAMIC_ACCESS_MAPPING_EXCEPTION_TEXT,type:"warning"}),E.remove({text:g.LOCAL_USER_TEXT,type:"warning"})}),l.list(void 0).then(y).then(s.isSsoEnabled).then(function(e){u=e}).then(N).then(function(){return r.current().then(function(e){return d.getTenantTfaSettings(c.user,e.name)}).then(function(e){c.enforcedGroup=_.find(c.groups,{name:e.enforcedUsersGroup}),c.topLevelTfaEnforced=d.isEnforcedForUser(c.user,e)||c._groups[c.enforcedGroup.id]})}),d.current().then(C),g.userHierarchyActive().then(function(e){w.FEATURE_USER_HIERARCHY=e})}e.$inject=["$q","$injector","$scope","$routeParams","c8yBase","c8yUser","c8yUserGroup","c8yAlert","c8yTitle","c8yTenant","c8yUserUtil","c8yUsersUi","c8yUserPreferences","c8yLoginOptions","c8yBeta","gettext"],angular.module("c8y.users").component("c8yUserDetailView",{templateUrl:":::PLUGIN_PATH:::/userDetailView/userDetailView.html",controller:e,controllerAs:"vm"})}();
1
+ "use strict";!function(){function e(a,F,c,e,f,d,l,E,n,r,t,g,h,s,m,o,p){var i,u,v,w=this,N=(_.assign(w,{cancel:g.gotoList,shouldDisableGlobalRolesCheckbox:D,isUserAndRolesFormPristine:U,isUserFormInvalid:y,isRolesFormInvalid:I,canSave:function(){return!(c.saving||U()||y()||I())},getRoleName:o.getName}),e.userId),R=["business"];function T(){N?d.detail(N).then(function(e){return e.data}).then(A).then(function(){return d.getUserTfaSettings(c.user).then(f.getResData).then(function(e){c.userTfaEnforced=!!e.tfaEnforced})}):(A({enabled:c.isNew=!0}),P(p("New user"),!0))}function A(e){u=e.email,e.devicePermissions=e.devicePermissions||{},c.user=e,c._groups=O(e),c.password.showPassword=c.isNew,c.hasExternalOrigin=d.hasExternalOrigin(e),c.isNew&&(_.forEach(c.groups,function(e){_.includes(R,e.name)&&(c._groups[e.id]=!0)}),v)&&E.warning(g.LOCAL_USER_TEXT),c.hasExternalOrigin&&s.isSsoClearingUserRolesOnEveryLogin().then(function(e){return c.userCanEditRoles=!e,c.userCanEditRoles}).then(function(e){e?E.warning(g.EXTERNAL_ORIGIN_DYNAMIC_ACCESS_MAPPING_EXCEPTION_TEXT):E.warning(g.EXTERNAL_ORIGIN_TEXT)})}function U(){return c.forms.userForm.$pristine&&c.forms.rolesForm.$pristine}function y(){return!!(M(c.currentUser,c.user)&&!c.hasExternalOrigin)&&c.forms.userForm.$invalid}function I(){return!D()&&c.forms.rolesForm.$invalid}function O(e){return _.reduce(_.get(e,"groups.references"),function(e,n){return e[n.group.id]=!0,e},{})}function C(e){c.groups=e}function L(e){c.currentUser=e}function G(r,e){function n(){return E.success(p("User saved."))}var t=1<arguments.length&&void 0!==e?e:"",e=(c.saving=!0,g.gotoList),s=!(r.id&&!r.groups),o=_(c._groups).map(function(e,n){return e&&parseInt(n,10)}).filter().value(),i=s?function(){return l.updateGroups(0<arguments.length&&void 0!==arguments[0]?arguments[0]:r,o)}:function(){return a.resolve()},s=c.forms.rolesForm.$dirty,u=c.password.showPassword;try{(c.hasExternalOrigin?g.warnAboutUserLogOutIfNeeded(r,{rolesChanged:s,passwordChanged:u}).then(function(){return i()}):g.warnAboutUserLogOutIfNeeded(r,{rolesChanged:s,passwordChanged:u}).then(function(){return r.password&&!c.isNew?d.changePassword(r,r.password,t):a.resolve()}).then(function(){return d.current()}).then(function(e){return _.isEqual(e.userName,r.userName)}).then(function(e){var n;return m.isActivatedFor("units-conversion")&&(e&&(n=r,n=_.get(r,"measurementUnit.value"),h.set("unit",n)),_.unset(r,"measurementUnit")),e}).then(function(e){return d.save(_.omit(r,c.isNew?["measurementUnit"]:["measurementUnit","password"]),e)}).then(f.getResData).then(function(e){return i(e)}).then(function(){return d.setUserTfaSettings(r,{tfaEnforced:!!c.userTfaEnforced})})).then(n).then(e).finally(function(){c.saving=!1})}catch(e){E.danger(e.message),c.saving=!1}}function P(){return n.changeTitle({title:0<arguments.length&&void 0!==arguments[0]?arguments[0]:""},{skipTitleTranslation:!(1<arguments.length&&void 0!==arguments[1]&&arguments[1])})}function S(e){return d.hasRole(e,"ROLE_USER_MANAGEMENT_ADMIN")||d.hasRole(e,"ROLE_USER_MANAGEMENT_CREATE")}function M(e,n){return!(!e||!n)&&(!n.id||(e.id===n.id?d.hasRole(e,"ROLE_USER_MANAGEMENT_OWN_ADMIN"):d.hasRole(e,"ROLE_USER_MANAGEMENT_ADMIN")||d.hasRole(e,"ROLE_USER_MANAGEMENT_CREATE")))}function $(e){return _.get(c.user,"owner")&&i&&!i[e.id]}function D(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=S(c.currentUser),e=!e||!$(e),r=!!c.userCanEditRoles||!c.hasExternalOrigin;return!(n&&e&&r)}c.checkPassword=function(n){var e=!c.isNew,r=c.password.showPassword||function(e){return e.email!==u}(n);return e&&r?t.currentPassword().then(function(e){return G(n,e)}).catch(function(e){e&&E.danger(f.getResErrorMessage(e)),T()}):G(n)},c.$watch("user.userName",P),c.$watch("user.owner",function(e){e?d.detail(e).then(f.getResData).then(function(e){i=O(e),_.forEach(c._groups,function(e,n){c._groups[n]=e&&i[n]})}):i=null}),c.$watch("_groups",function(e){c.enforcedGroup&&(c.topLevelTfaEnforced=e[c.enforcedGroup.id])},!0),c.canEditUser=M,c.canEditUserGroups=S,c.canActivateUser=function(e,n){return!(!e||!n)&&e.id!==n.id},c.forms={},c.password={},c.saving=!1,c.showAcl=function(){var e=_.get(c.user,"devicePermissions"),e=_.keys(e);return f.getFlag("deprecated")||e.length},c.restrictedByOwner=$,c.$on("$destroy",function(){E.remove({text:g.EXTERNAL_ORIGIN_TEXT,type:"warning"}),E.remove({text:g.EXTERNAL_ORIGIN_DYNAMIC_ACCESS_MAPPING_EXCEPTION_TEXT,type:"warning"}),E.remove({text:g.LOCAL_USER_TEXT,type:"warning"})}),l.list(void 0).then(C).then(s.isSsoEnabled).then(function(e){v=e}).then(T).then(function(){return r.current().then(function(e){return d.getTenantTfaSettings(c.user,e.name)}).then(function(e){c.enforcedGroup=_.find(c.groups,{name:e.enforcedUsersGroup}),c.topLevelTfaEnforced=d.isEnforcedForUser(c.user,e)||c._groups[c.enforcedGroup.id]})}),d.current().then(L),g.userHierarchyActive().then(function(e){w.FEATURE_USER_HIERARCHY=e})}e.$inject=["$q","$injector","$scope","$routeParams","c8yBase","c8yUser","c8yUserGroup","c8yAlert","c8yTitle","c8yTenant","c8yUserUtil","c8yUsersUi","c8yUserPreferences","c8yLoginOptions","c8yBeta","c8yPropertyValueTransformService","gettext"],angular.module("c8y.users").component("c8yUserDetailView",{templateUrl:":::PLUGIN_PATH:::/userDetailView/userDetailView.html",controller:e,controllerAs:"vm"})}();
@@ -78,10 +78,10 @@
78
78
  <span></span>
79
79
  <span
80
80
  class="text-normal d-flex"
81
- title="{{ ::group.name | translate }}"
81
+ title="{{ ::vm.getRoleName(group) | translate }}"
82
82
  >
83
83
  <div>
84
- {{::group.name | translate}}
84
+ {{::vm.getRoleName(group) | translate}}
85
85
  <p class="small text-muted">{{::group.description | translate}}</p>
86
86
  </div>
87
87
  <button