mirror of https://gitee.com/answerdev/answer.git
Merge pull request #259 from answerdev/feat/1.0.7/ui
fix: admin or moderator can create or edit tag
This commit is contained in:
commit
9143842e4a
|
@ -144,7 +144,7 @@ const Index = () => {
|
||||||
<Form.Control
|
<Form.Control
|
||||||
value={formData.displayName.value}
|
value={formData.displayName.value}
|
||||||
isInvalid={formData.displayName.isInvalid}
|
isInvalid={formData.displayName.isInvalid}
|
||||||
disabled={role_id !== 2}
|
disabled={role_id !== 2 && role_id !== 3}
|
||||||
onChange={handleDisplayNameChange}
|
onChange={handleDisplayNameChange}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ const Index = () => {
|
||||||
<Form.Control
|
<Form.Control
|
||||||
value={formData.slugName.value}
|
value={formData.slugName.value}
|
||||||
isInvalid={formData.slugName.isInvalid}
|
isInvalid={formData.slugName.isInvalid}
|
||||||
disabled={role_id !== 2}
|
disabled={role_id !== 2 && role_id !== 3}
|
||||||
onChange={handleSlugNameChange}
|
onChange={handleSlugNameChange}
|
||||||
/>
|
/>
|
||||||
<Form.Text as="div">{t('form.fields.slug_name.desc')}</Form.Text>
|
<Form.Text as="div">{t('form.fields.slug_name.desc')}</Form.Text>
|
||||||
|
|
|
@ -219,7 +219,7 @@ const Index = () => {
|
||||||
<Form.Control
|
<Form.Control
|
||||||
value={formData.displayName.value}
|
value={formData.displayName.value}
|
||||||
isInvalid={formData.displayName.isInvalid}
|
isInvalid={formData.displayName.isInvalid}
|
||||||
disabled={role_id !== 2}
|
disabled={role_id !== 2 && role_id !== 3}
|
||||||
onChange={handleDisplayNameChange}
|
onChange={handleDisplayNameChange}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ const Index = () => {
|
||||||
<Form.Control
|
<Form.Control
|
||||||
value={formData.slugName.value}
|
value={formData.slugName.value}
|
||||||
isInvalid={formData.slugName.isInvalid}
|
isInvalid={formData.slugName.isInvalid}
|
||||||
disabled={role_id !== 2}
|
disabled={role_id !== 2 && role_id !== 3}
|
||||||
onChange={handleSlugNameChange}
|
onChange={handleSlugNameChange}
|
||||||
/>
|
/>
|
||||||
<Form.Text as="div">{t('form.fields.slug_name.info')}</Form.Text>
|
<Form.Text as="div">{t('form.fields.slug_name.info')}</Form.Text>
|
||||||
|
|
Loading…
Reference in New Issue