From 7d5329e186681ae38c8406bba11003fd1a7b83b3 Mon Sep 17 00:00:00 2001 From: hinton Date: Sat, 23 May 2020 11:15:23 +0200 Subject: [PATCH] Add hide password checkboxes to add/edit collection. --- .../organizations/manage/collection-add-edit.component.html | 5 +++++ .../organizations/manage/collection-add-edit.component.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/app/organizations/manage/collection-add-edit.component.html b/src/app/organizations/manage/collection-add-edit.component.html index bafca3c464..956c46692c 100644 --- a/src/app/organizations/manage/collection-add-edit.component.html +++ b/src/app/organizations/manage/collection-add-edit.component.html @@ -41,6 +41,7 @@   {{'name' | i18n}} + {{'hidePasswords' | i18n}} {{'readOnly' | i18n}} @@ -58,6 +59,10 @@ {{'groupAccessAllItems' | i18n}} + + + diff --git a/src/app/organizations/manage/collection-add-edit.component.ts b/src/app/organizations/manage/collection-add-edit.component.ts index 981cdbc2ce..1659c8d1cc 100644 --- a/src/app/organizations/manage/collection-add-edit.component.ts +++ b/src/app/organizations/manage/collection-add-edit.component.ts @@ -73,6 +73,7 @@ export class CollectionAddEditComponent implements OnInit { if (group != null && group.length > 0) { (group[0] as any).checked = true; (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; if (!(g as any).checked) { (g as any).readOnly = false; + (g as any).hidePasswords = false; } }