Fixed library options not showing in create dialog

This commit is contained in:
Stefan Zermatten
2023-06-24 00:28:03 +02:00
parent c50c512587
commit 6c7308ebf8
3 changed files with 11 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ export default {
hideLibraryTab: true,
noBackdropClose: true,
showLibraryOnlyProps: true,
collection: 'libraryNodes',
},
callback(libraryNode){
if (!libraryNode) return;

View File

@@ -324,6 +324,7 @@ export default {
suggestedType,
noBackdropClose: true,
showLibraryOnlyProps: true,
collection: 'libraryNodes',
},
callback(result){
if (!result) return;

View File

@@ -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){