fix: template name readonly in editting
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import PluginExtraFields from '@/components/plugin-extra-fields';
|
import PluginExtraFields from '@/components/plugin-extra-fields';
|
||||||
import { validateLabelNameRegxFor63 } from '@/config';
|
import { PageAction, validateLabelNameRegxFor63 } from '@/config';
|
||||||
import { PageActionType } from '@/config/types';
|
import { PageActionType } from '@/config/types';
|
||||||
import {
|
import {
|
||||||
Input as CInput,
|
Input as CInput,
|
||||||
@@ -86,7 +86,7 @@ const Basic: React.FC<BasicProps> = ({
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<CInput.Input
|
<CInput.Input
|
||||||
disabled={disabled}
|
disabled={disabled || action === PageAction.EDIT}
|
||||||
label={intl.formatMessage({ id: 'common.table.name' })}
|
label={intl.formatMessage({ id: 'common.table.name' })}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user