mirror of
https://github.com/strapi/strapi.git
synced 2025-09-06 15:22:59 +00:00
Add isSubmitting to button
This commit is contained in:
parent
f16f4ba4ef
commit
ab0c3352f0
@ -22,7 +22,7 @@ const EditPage = () => {
|
|||||||
const {
|
const {
|
||||||
params: { id },
|
params: { id },
|
||||||
} = useRouteMatch('/settings/roles/:id');
|
} = useRouteMatch('/settings/roles/:id');
|
||||||
const [, setIsSubmiting] = useState(false);
|
const [isSubmitting, setIsSubmiting] = useState(false);
|
||||||
const permissionsRef = useRef();
|
const permissionsRef = useRef();
|
||||||
const { lockApp, unlockApp } = useOverlayBlocker();
|
const { lockApp, unlockApp } = useOverlayBlocker();
|
||||||
const { trackUsage } = useTracking();
|
const { trackUsage } = useTracking();
|
||||||
@ -118,7 +118,11 @@ const EditPage = () => {
|
|||||||
defaultMessage: 'Reset',
|
defaultMessage: 'Reset',
|
||||||
})}
|
})}
|
||||||
</Button>
|
</Button>
|
||||||
<Button disabled={role.code === 'strapi-super-admin'} onClick={handleSubmit}>
|
<Button
|
||||||
|
disabled={role.code === 'strapi-super-admin'}
|
||||||
|
onClick={handleSubmit}
|
||||||
|
loading={isSubmitting}
|
||||||
|
>
|
||||||
{formatMessage({
|
{formatMessage({
|
||||||
id: 'app.components.Button.save',
|
id: 'app.components.Button.save',
|
||||||
defaultMessage: 'Save',
|
defaultMessage: 'Save',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user