Hide protected attributes in dialog

This commit is contained in:
Michael Starke
2018-08-27 11:37:34 +02:00
parent 14afe81ec2
commit 1ed18568a9

View File

@@ -51,13 +51,12 @@
for(KPKAttribute *attribute in entry.defaultAttributes) {
/* 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")]];
for(KPKAttribute *attribute in entry.customAttributes) {
/* TODO exclude protected values */
[items addObject:[MPPickfieldTableModelRowItem itemWithName:attribute.key value:attribute.value]];
[items addObject:[MPPickfieldTableModelRowItem itemWithName:attribute.key value:(attribute.protect ? @"•••" : attribute.value)]];
}
self.items = items; // copy creates an immutable copy
}