Add hide password checkboxes to add/edit collection.
This commit is contained in:
parent
5b9c41f29a
commit
7d5329e186
|
@ -41,6 +41,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
<th>{{'name' | i18n}}</th>
|
<th>{{'name' | i18n}}</th>
|
||||||
|
<th width="100" class="text-center">{{'hidePasswords' | i18n}}</th>
|
||||||
<th width="100" class="text-center">{{'readOnly' | i18n}}</th>
|
<th width="100" class="text-center">{{'readOnly' | i18n}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -58,6 +59,10 @@
|
||||||
<span class="sr-only">{{'groupAccessAllItems' | i18n}}</span>
|
<span class="sr-only">{{'groupAccessAllItems' | i18n}}</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="text-center">
|
||||||
|
<input type="checkbox" [(ngModel)]="g.hidePasswords"
|
||||||
|
name="Groups[{{i}}].HidePasswords" [disabled]="!g.checked || g.accessAll">
|
||||||
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<input type="checkbox" [(ngModel)]="g.readOnly" name="Groups[{{i}}].ReadOnly"
|
<input type="checkbox" [(ngModel)]="g.readOnly" name="Groups[{{i}}].ReadOnly"
|
||||||
[disabled]="!g.checked || g.accessAll">
|
[disabled]="!g.checked || g.accessAll">
|
||||||
|
|
|
@ -73,6 +73,7 @@ export class CollectionAddEditComponent implements OnInit {
|
||||||
if (group != null && group.length > 0) {
|
if (group != null && group.length > 0) {
|
||||||
(group[0] as any).checked = true;
|
(group[0] as any).checked = true;
|
||||||
(group[0] as any).readOnly = s.readOnly;
|
(group[0] as any).readOnly = s.readOnly;
|
||||||
|
(group[0] as any).hidePasswords = s.hidePasswords;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -97,6 +98,7 @@ export class CollectionAddEditComponent implements OnInit {
|
||||||
(g as any).checked = select == null ? !(g as any).checked : select;
|
(g as any).checked = select == null ? !(g as any).checked : select;
|
||||||
if (!(g as any).checked) {
|
if (!(g as any).checked) {
|
||||||
(g as any).readOnly = false;
|
(g as any).readOnly = false;
|
||||||
|
(g as any).hidePasswords = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue