Removes compound of multiple values from bulk edition and child metadatum from copy options.

This commit is contained in:
mateuswetah 2021-05-19 11:51:39 -03:00
parent d0c9425300
commit bea86546d0
1 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@
{{ metadatum.name }}
</option>
<optgroup
v-if="metadatum.id && metadatum.metadata_type_object.component === 'tainacan-compound'"
v-if="metadatum.id && metadatum.metadata_type_object.component === 'tainacan-compound' && metadatum.multiple !== 'yes'"
:key="index"
:label="metadatum.name">
<option
@ -591,7 +591,7 @@
);
});
if (otherMetadatumOfSameTypeIndex < 0 && metadatum.metadata_type_object.component != 'tainacan-user') {
if ((otherMetadatumOfSameTypeIndex < 0 && metadatum.metadata_type_object.component != 'tainacan-user') || metadatum.parent > 0) {
delete validEditionActions[actionKey];
}
}