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

This commit is contained in:
Junyi 2024-10-16 15:35:14 +08:00 committed by GitHub
parent c2a8dced55
commit 0c2b07ea33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'),
};