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
|
||||
value={formData.displayName.value}
|
||||
isInvalid={formData.displayName.isInvalid}
|
||||
disabled={role_id !== 2}
|
||||
disabled={role_id !== 2 && role_id !== 3}
|
||||
onChange={handleDisplayNameChange}
|
||||
/>
|
||||
|
||||
|
@ -157,7 +157,7 @@ const Index = () => {
|
|||
<Form.Control
|
||||
value={formData.slugName.value}
|
||||
isInvalid={formData.slugName.isInvalid}
|
||||
disabled={role_id !== 2}
|
||||
disabled={role_id !== 2 && role_id !== 3}
|
||||
onChange={handleSlugNameChange}
|
||||
/>
|
||||
<Form.Text as="div">{t('form.fields.slug_name.desc')}</Form.Text>
|
||||
|
|
|
@ -219,7 +219,7 @@ const Index = () => {
|
|||
<Form.Control
|
||||
value={formData.displayName.value}
|
||||
isInvalid={formData.displayName.isInvalid}
|
||||
disabled={role_id !== 2}
|
||||
disabled={role_id !== 2 && role_id !== 3}
|
||||
onChange={handleDisplayNameChange}
|
||||
/>
|
||||
|
||||
|
@ -232,7 +232,7 @@ const Index = () => {
|
|||
<Form.Control
|
||||
value={formData.slugName.value}
|
||||
isInvalid={formData.slugName.isInvalid}
|
||||
disabled={role_id !== 2}
|
||||
disabled={role_id !== 2 && role_id !== 3}
|
||||
onChange={handleSlugNameChange}
|
||||
/>
|
||||
<Form.Text as="div">{t('form.fields.slug_name.info')}</Form.Text>
|
||||
|
|
Loading…
Reference in New Issue