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