Fix Reference missing from type search in library tree
This commit is contained in:
@@ -108,7 +108,6 @@ import escapeRegex from '/imports/api/utility/escapeRegex.js';
|
||||
|
||||
const filterOptions = [];
|
||||
for (let key in PROPERTIES) {
|
||||
if (key === 'reference') continue;
|
||||
filterOptions.push({
|
||||
text: PROPERTIES[key].name,
|
||||
value: key,
|
||||
@@ -121,11 +120,14 @@ export default {
|
||||
type: Object,
|
||||
default: undefined,
|
||||
},
|
||||
isLibrary: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data(){return {
|
||||
typeFilterInput: [],
|
||||
fieldFilters: [{field: 'name', value: undefined}],
|
||||
filterOptions,
|
||||
menu: false,
|
||||
}},
|
||||
computed: {
|
||||
@@ -156,6 +158,11 @@ export default {
|
||||
});
|
||||
return filter;
|
||||
},
|
||||
filterOptions() {
|
||||
return !this.isLibrary
|
||||
? filterOptions.filter(p => p.value !== 'reference')
|
||||
: filterOptions;
|
||||
},
|
||||
extraFields() {
|
||||
let extraFields = [];
|
||||
this.fieldFilters?.forEach(fieldFilter => {
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
v-model="filter"
|
||||
class="mx-4"
|
||||
@extra-fields-changed="val => extraFields = val"
|
||||
:is-library="true"
|
||||
/>
|
||||
<v-spacer />
|
||||
<v-fade-transition>
|
||||
|
||||
Reference in New Issue
Block a user