mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:45:18 +00:00
fix(plugin-file-manager): fix storage configuration error (#5378)
This commit is contained in:
parent
26b99964fd
commit
31325556a1
@ -38,7 +38,7 @@ export const CreateStorage = () => {
|
|||||||
[uid()]: {
|
[uid()]: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Action.Drawer',
|
'x-component': 'Action.Drawer',
|
||||||
'x-decorator': 'FormV2',
|
'x-decorator': 'Form',
|
||||||
'x-decorator-props': {
|
'x-decorator-props': {
|
||||||
initialValue: {
|
initialValue: {
|
||||||
type: storageType.name,
|
type: storageType.name,
|
||||||
@ -105,8 +105,8 @@ export const EditStorage = () => {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
const storageType = plugin.storageTypes.get(record.type);
|
const storageType = plugin.storageTypes.get(record.type);
|
||||||
if (storageType.properties['default']) {
|
if (storageType.fieldset['default']) {
|
||||||
storageType.properties['default']['x-reactions'] = (field) => {
|
storageType.fieldset['default']['x-reactions'] = (field) => {
|
||||||
if (field.initialValue) {
|
if (field.initialValue) {
|
||||||
field.disabled = true;
|
field.disabled = true;
|
||||||
} else {
|
} else {
|
||||||
@ -120,7 +120,7 @@ export const EditStorage = () => {
|
|||||||
[uid()]: {
|
[uid()]: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Action.Drawer',
|
'x-component': 'Action.Drawer',
|
||||||
'x-decorator': 'FormV2',
|
'x-decorator': 'Form',
|
||||||
'x-decorator-props': {
|
'x-decorator-props': {
|
||||||
initialValue: {
|
initialValue: {
|
||||||
...record,
|
...record,
|
||||||
|
Loading…
Reference in New Issue
Block a user