add a new allowed metadata from the corpus properties page
closes https://gitlab.com/arkindex/frontend/-/issues/757
In MetaData.vue I replaced const allowedMetadata = this.allowedMetadata[this.selectedAllowedMetadata]
with const allowedMetadata = { name: this.allowedMetadata[this.selectedAllowedMetadata].name, type: this.allowedMetadata[this.selectedAllowedMetadata].type }
which is not very cute because otherwise the POST request went to /element/{AllowedMetaData id}/metadata/
instead of element/{the actual element id}/metadata
for some reason.
Edited by ml bonhomme