@c8y/ng1-modules 1021.55.3 → 1021.56.4
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,8 +572,8 @@
|
|
|
572
572
|
title="{{ 'User must change password on the next login' | translate }}"
|
|
573
573
|
>
|
|
574
574
|
<input
|
|
575
|
-
type="checkbox"
|
|
576
575
|
name="shouldResetPassword"
|
|
576
|
+
type="checkbox"
|
|
577
577
|
ng-model="user.shouldResetPassword"
|
|
578
578
|
ng-disabled="user.sendPasswordResetEmail"
|
|
579
579
|
/>
|
|
@@ -583,16 +583,19 @@
|
|
|
583
583
|
</div>
|
|
584
584
|
</div>
|
|
585
585
|
|
|
586
|
-
<div
|
|
586
|
+
<div
|
|
587
|
+
class="m-t-16"
|
|
588
|
+
ng-hide="user.id"
|
|
589
|
+
>
|
|
587
590
|
<label class="control-label">{{ 'Password options' | translate }}</label>
|
|
588
591
|
<label
|
|
589
|
-
title="{{ 'Send password reset link as email' | translate }}"
|
|
590
592
|
class="c8y-radio input-sm"
|
|
593
|
+
title="{{ 'Send password reset link as email' | translate }}"
|
|
591
594
|
>
|
|
592
595
|
<input
|
|
593
|
-
type="radio"
|
|
594
596
|
id="sendPasswordByEmailRadio"
|
|
595
597
|
name="setUserPasswordRadio"
|
|
598
|
+
type="radio"
|
|
596
599
|
ng-value="'sendPasswordByEmail'"
|
|
597
600
|
ng-model="userPasswordAction"
|
|
598
601
|
/>
|
|
@@ -600,32 +603,34 @@
|
|
|
600
603
|
<span>{{ 'Send password reset link as email' | translate }}</span>
|
|
601
604
|
</label>
|
|
602
605
|
<label
|
|
603
|
-
title="{{ 'Set password that must be changed on the first login' | translate }}"
|
|
604
606
|
class="c8y-radio input-sm"
|
|
607
|
+
title="{{ 'Set temporary password (user must change it on the first login)' | translate }}"
|
|
605
608
|
>
|
|
606
609
|
<input
|
|
607
|
-
type="radio"
|
|
608
610
|
id="setPasswordAndForceToResetRadio"
|
|
609
611
|
name="setUserPasswordRadio"
|
|
612
|
+
type="radio"
|
|
610
613
|
ng-value="'setUserPasswordAndForceToReset'"
|
|
611
614
|
ng-model="userPasswordAction"
|
|
612
615
|
/>
|
|
613
616
|
<span></span>
|
|
614
|
-
<span>
|
|
617
|
+
<span>
|
|
618
|
+
{{ 'Set temporary password (user must change it on the first login)' | translate }}
|
|
619
|
+
</span>
|
|
615
620
|
</label>
|
|
616
621
|
<label
|
|
617
|
-
title="{{ 'Set password for the user (no change required)' | translate }}"
|
|
618
622
|
class="c8y-radio input-sm"
|
|
623
|
+
title="{{ 'Set password (not recommended)' | translate }}"
|
|
619
624
|
>
|
|
620
625
|
<input
|
|
621
|
-
type="radio"
|
|
622
626
|
id="setUserPasswordRadio"
|
|
623
627
|
name="setUserPasswordRadio"
|
|
628
|
+
type="radio"
|
|
624
629
|
ng-value="'setUserPassword'"
|
|
625
630
|
ng-model="userPasswordAction"
|
|
626
631
|
/>
|
|
627
632
|
<span></span>
|
|
628
|
-
<span>{{ 'Set password
|
|
633
|
+
<span>{{ 'Set password (not recommended)' | translate }}</span>
|
|
629
634
|
</label>
|
|
630
635
|
</div>
|
|
631
636
|
</div>
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function e(
|
|
1
|
+
(()=>{function e(e,n){var o=this,t=[],i=[];function r(){t=_.clone((o.assignedRoles||{}).roles)||[]}function l(e){return _(e).sortBy(y).map(y).value().join(", ")}function s(e){return _.some(t,{id:e.id})||d(e)}function d(e){return _.some(i,{id:e.id})}function c(){return e("filter")(o.inventoryRoles,o.roleTextFilter)}function u(){var e=c().filter(g);return _.every(e,s)}function a(){return t.filter(g)}function g(e){return!o.ownerAllowedRoles||_.some(o.ownerAllowedRoles,{id:e.id})}function f(){var e=_.sortBy(_.map((o.assignedRoles||{}).roles,"id")),n=_.sortBy(_.map(t,"id"));o.isUnchanged=_.isEqual(e,n)}function y(e){return n.getString(e.name)}_.assign(o,{displayTextAssigned:function(){return l((o.assignedRoles||{}).roles)},displayTextInherited:function(){return l(i)},$onChanges:function(e){e.assignedRoles&&r();e.inheritedRoles&&(i=o.inheritedRoles)},toggle:function(e){s(e)?_.remove(t,{id:e.id}):(t.push(e),t=_.uniqBy(t,"id"));f()},toggleSelectAll:function(){u()?t.length=0:t=_.reject(c(),d);f()},allSelected:u,isSelected:s,isInherited:d,filteredAssignedRoles:a,apply:function(){var e=a();o.onApply({roles:e}),o.isDropDownOpen=!1},onToggleDropdown:function(e){e||(r(),o.isUnchanged=!0)},isAllowedByOwner:g,isUnchanged:!0,getFormattedInventoryRoleDescription:_.memoize(function(e){return n.getString(e.trim())}),translateName:y})}e.$inject=["$filter","gettextCatalog"],angular.module("c8y.userRoles").component("c8yInventoryRoleSelector",{bindings:{assignedRoles:"<",inheritedRoles:"<",inventoryRoles:"<",ownerAllowedRoles:"<",onApply:"&"},templateUrl:":::PLUGIN_PATH:::/inventoryRoleSelector/inventoryRoleSelector.html",controller:e,controllerAs:"vm"})})();
|