mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 04:05:45 +00:00
refactor: external data source view collection createMainOnly (#4287)
This commit is contained in:
parent
040d79747c
commit
f1923d25cd
@ -38,6 +38,7 @@ export class ViewCollectionTemplate extends CollectionTemplate {
|
||||
'x-component': 'Select',
|
||||
'x-reactions': ['{{useAsyncDataSource(loadDBViews)}}'],
|
||||
'x-disabled': '{{ !createOnly }}',
|
||||
'x-visible': '{{!createMainOnly}}',
|
||||
},
|
||||
name: {
|
||||
type: 'string',
|
||||
@ -106,6 +107,7 @@ export class ViewCollectionTemplate extends CollectionTemplate {
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Checkbox',
|
||||
default: false,
|
||||
'x-visible': '{{!createMainOnly}}',
|
||||
},
|
||||
sources: {
|
||||
type: 'array',
|
||||
@ -117,6 +119,7 @@ export class ViewCollectionTemplate extends CollectionTemplate {
|
||||
},
|
||||
'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'],
|
||||
'x-disabled': true,
|
||||
'x-visible': '{{!createMainOnly}}',
|
||||
},
|
||||
fields: {
|
||||
type: 'array',
|
||||
|
@ -211,6 +211,7 @@ const EditCollectionAction = (props) => {
|
||||
createOnly: false,
|
||||
filterTargetKeyOptions,
|
||||
isView: record.view,
|
||||
createMainOnly: true,
|
||||
...scope,
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user