Removes Compound and User metadata from possible sorting options.

This commit is contained in:
mateuswetah 2020-04-23 16:27:53 -03:00
parent 56e8aed441
commit 63fdac10b5
2 changed files with 11 additions and 4 deletions

View File

@ -1047,7 +1047,8 @@
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Core_Description' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Taxonomy' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Relationship' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Compound'
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Compound'&&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\User'
) {
this.sortingMetadata.push(metadatum);
}
@ -1136,7 +1137,9 @@
if (metadatum.display !== 'never' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Core_Description' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Taxonomy' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Relationship') {
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Relationship'&&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Compound'&&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\User') {
this.sortingMetadata.push(metadatum);
}
}

View File

@ -957,7 +957,8 @@
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Core_Description' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Taxonomy' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Relationship' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Compound'
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Compound' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\User'
) {
this.sortingMetadata.push(metadatum);
}
@ -1017,7 +1018,10 @@
if (metadatum.display !== 'never' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Core_Description' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Taxonomy' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Relationship') {
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Relationship' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\Compound' &&
metadatum.metadata_type != 'Tainacan\\Metadata_Types\\User'
) {
this.sortingMetadata.push(metadatum);
}
}