Use built-in loading prop for save button.
This commit is contained in:
1 parent
840690d50b
commit
100c5d3f21
1 file changed
+2
-10
+2
-10
@@ -307,22 +307,14 @@ const NotificationIntegrationModal = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
color="accent"
|
color="accent"
|
||||||
onClick={handleSave}
|
onClick={handleSave}
|
||||||
disabled={loading}
|
loading={loading}
|
||||||
sx={{
|
sx={{
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
minWidth: theme.spacing(60),
|
minWidth: theme.spacing(60),
|
||||||
px: theme.spacing(8)
|
px: theme.spacing(8)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{loading ?
|
{t('common.save', 'Save')}
|
||||||
<CircularProgress
|
|
||||||
size={theme.spacing(12)}
|
|
||||||
sx={{
|
|
||||||
color: theme.palette.accent.main
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
: t('common.save', 'Save')
|
|
||||||
}
|
|
||||||
</Button>
|
</Button>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|||||||
Reference in new issue
Block a user