mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 16:34:14 +00:00
fix(plugin-file-manager): fix storage field in template to load more storages (#5430)
Some checks are pending
Auto merge main -> next / push-commit (push) Waiting to run
Build docker image / build-and-push (push) Waiting to run
Build pro image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase frontEnd test / frontend-test (18) (push) Waiting to run
Some checks are pending
Auto merge main -> next / push-commit (push) Waiting to run
Build docker image / build-and-push (push) Waiting to run
Build pro image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase frontEnd test / frontend-test (18) (push) Waiting to run
This commit is contained in:
parent
c2a8dced55
commit
0c2b07ea33
@ -157,12 +157,24 @@ export class FileCollectionTemplate extends CollectionTemplate {
|
||||
},
|
||||
...getConfigurableProperties('category', 'description'),
|
||||
storage: {
|
||||
title: `{{t("File storage", { ns: "${NAMESPACE}" })}}`,
|
||||
type: 'hasOne',
|
||||
type: 'string',
|
||||
name: 'storage',
|
||||
title: `{{t("File storage", { ns: "${NAMESPACE}" })}}`,
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Select',
|
||||
'x-reactions': ['{{useAsyncDataSource(loadStorages)}}'],
|
||||
'x-component': 'RemoteSelect',
|
||||
'x-component-props': {
|
||||
service: {
|
||||
resource: 'storages',
|
||||
params: {
|
||||
// pageSize: -1
|
||||
},
|
||||
},
|
||||
manual: false,
|
||||
fieldNames: {
|
||||
label: 'title',
|
||||
value: 'name',
|
||||
},
|
||||
},
|
||||
},
|
||||
...getConfigurableProperties('presetFields'),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user