mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 11:42:30 +00:00
Hide protected attributes in dialog
This commit is contained in:
@@ -51,13 +51,12 @@
|
|||||||
|
|
||||||
for(KPKAttribute *attribute in entry.defaultAttributes) {
|
for(KPKAttribute *attribute in entry.defaultAttributes) {
|
||||||
/* TODO exclude protected values */
|
/* TODO exclude protected values */
|
||||||
[items addObject:[MPPickfieldTableModelRowItem itemWithName:attribute.key value:attribute.value]];
|
[items addObject:[MPPickfieldTableModelRowItem itemWithName:attribute.key value:(attribute.protect ? @"•••" : attribute.value)]];
|
||||||
}
|
}
|
||||||
|
|
||||||
[items addObject:[MPPickfieldTableModelRowItem groupItemWithName:NSLocalizedString(@"ENTRY_CUSTOM_ATTRIBUTES", @"Group row for entry attributes")]];
|
[items addObject:[MPPickfieldTableModelRowItem groupItemWithName:NSLocalizedString(@"ENTRY_CUSTOM_ATTRIBUTES", @"Group row for entry attributes")]];
|
||||||
for(KPKAttribute *attribute in entry.customAttributes) {
|
for(KPKAttribute *attribute in entry.customAttributes) {
|
||||||
/* TODO exclude protected values */
|
[items addObject:[MPPickfieldTableModelRowItem itemWithName:attribute.key value:(attribute.protect ? @"•••" : attribute.value)]];
|
||||||
[items addObject:[MPPickfieldTableModelRowItem itemWithName:attribute.key value:attribute.value]];
|
|
||||||
}
|
}
|
||||||
self.items = items; // copy creates an immutable copy
|
self.items = items; // copy creates an immutable copy
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user