@c8y/ng1-modules 1020.10.0 → 1020.13.2

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.
@@ -572,6 +572,7 @@
572
572
  >
573
573
  <input
574
574
  type="checkbox"
575
+ name="shouldResetPassword"
575
576
  ng-model="user.shouldResetPassword"
576
577
  ng-disabled="!notCurrentUser || user.sendPasswordResetEmail"
577
578
  />
@@ -583,13 +584,14 @@
583
584
  <div ng-hide="hidePasswordReset || disabledEdit || user.id">
584
585
  <label
585
586
  class="c8y-checkbox"
586
- ng-class="{ disabled: user.id || user.shouldResetPassword }"
587
+ ng-class="{ disabled: user.id }"
587
588
  title="{{ 'Send password reset link as email' | translate }}"
588
589
  >
589
590
  <input
590
591
  type="checkbox"
592
+ name="sendPasswordResetEmail"
591
593
  ng-model="user.sendPasswordResetEmail"
592
- ng-disabled="user.shouldResetPassword"
594
+ ng-change="user.shouldResetPassword = !user.sendPasswordResetEmail"
593
595
  />
594
596
  <span></span>
595
597
  <span>{{ 'Send password reset link as email' | translate }}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1020.10.0",
3
+ "version": "1020.13.2",
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 n(e,n,t,s,i){var r=this;function c(){var n=i("User's application access changed.");return s.success(n)}_.assign(r,{$onInit:function(){r.hasExternalOrigin&&s.warning(t.EXTERNAL_ORIGIN_TEXT)},save:function(){var n=_.pick(r.user,["id","applications"]);return e.save(n).then(c)},cancel:t.gotoList,$onChanges:function(n){n.user&&r.user&&!function(n){t.hasAppManagement(n).then(function(n){r.hasAppManagement=n})}(r.user)},hasExternalOrigin:e.hasExternalOrigin(r.user),$onDestroy:function(){s.remove({text:t.EXTERNAL_ORIGIN_TEXT,type:"warning"})}})}n.$inject=["c8yUser","c8yApplication","c8yUsersUi","c8yAlert","gettext"],angular.module("c8y.users").component("c8yUserApplicationAccess",{templateUrl:":::PLUGIN_PATH:::/userDetailView/userApplicationAccess.html",bindings:{user:"<"},controller:n,controllerAs:"vm"})}();
1
+ "use strict";!function(){function n(e,n,s,t,i){var r=this;function c(){var n=i("User's application access changed.");return t.success(n)}_.assign(r,{save:function(){var n=_.pick(r.user,["id","applications"]);return e.save(n).then(c)},cancel:s.gotoList,$onChanges:function(n){n.user&&r.user&&(r.hasExternalOrigin=e.hasExternalOrigin(r.user),r.hasExternalOrigin&&t.warning(s.EXTERNAL_ORIGIN_TEXT),function(n){s.hasAppManagement(n).then(function(n){r.hasAppManagement=n})}(r.user))},$onDestroy:function(){t.remove({text:s.EXTERNAL_ORIGIN_TEXT,type:"warning"})}})}n.$inject=["c8yUser","c8yApplication","c8yUsersUi","c8yAlert","gettext"],angular.module("c8y.users").component("c8yUserApplicationAccess",{templateUrl:":::PLUGIN_PATH:::/userDetailView/userApplicationAccess.html",bindings:{user:"<"},controller:n,controllerAs:"vm"})}();