Fixed library options not showing in create dialog
This commit is contained in:
@@ -57,6 +57,7 @@ export default {
|
||||
hideLibraryTab: true,
|
||||
noBackdropClose: true,
|
||||
showLibraryOnlyProps: true,
|
||||
collection: 'libraryNodes',
|
||||
},
|
||||
callback(libraryNode){
|
||||
if (!libraryNode) return;
|
||||
|
||||
@@ -324,6 +324,7 @@ export default {
|
||||
suggestedType,
|
||||
noBackdropClose: true,
|
||||
showLibraryOnlyProps: true,
|
||||
collection: 'libraryNodes',
|
||||
},
|
||||
callback(result){
|
||||
if (!result) return;
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
no-child-insert
|
||||
:model="model"
|
||||
:errors="errors"
|
||||
:collection="collection"
|
||||
@change="change"
|
||||
@push="push"
|
||||
@pull="pull"
|
||||
@@ -229,6 +230,10 @@ export default {
|
||||
type: Array,
|
||||
default: undefined,
|
||||
},
|
||||
collection: {
|
||||
type: String,
|
||||
default: undefined,
|
||||
},
|
||||
suggestedType: {
|
||||
type: String,
|
||||
default: undefined,
|
||||
@@ -250,7 +255,7 @@ export default {
|
||||
},
|
||||
reactiveProvide: {
|
||||
name: 'context',
|
||||
include: ['debounceTime'],
|
||||
include: ['debounceTime', 'isLibraryForm'],
|
||||
},
|
||||
data(){return {
|
||||
selectedNodeIds: [],
|
||||
@@ -274,6 +279,9 @@ export default {
|
||||
const propDef = PROPERTIES[this.type];
|
||||
return propDef && propDef.docsPath;
|
||||
},
|
||||
isLibraryForm() {
|
||||
return this.collection === 'libraryNodes' || undefined;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
type(newType){
|
||||
|
||||
Reference in New Issue
Block a user