feat(mui): ConfirmDialog processing text 'Zpracovávám…' + re-wire Users delete loading
After clicking the confirm button, it shows 'Zpracovávám…' (disabled) while the action is in flight — matching how the form modal shows 'Ukládám…'. The earlier freeze keeps it through the close fade (no flash back to the confirm label). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -479,6 +479,7 @@ export default function Users() {
|
|||||||
}
|
}
|
||||||
confirmText="Smazat"
|
confirmText="Smazat"
|
||||||
confirmVariant="danger"
|
confirmVariant="danger"
|
||||||
|
loading={deleteUser.isPending}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export default function ConfirmDialog({
|
|||||||
color={confirmVariant === "danger" ? "error" : "primary"}
|
color={confirmVariant === "danger" ? "error" : "primary"}
|
||||||
disabled={shown.loading}
|
disabled={shown.loading}
|
||||||
>
|
>
|
||||||
{shown.loading ? "Pracuji…" : shown.confirmText}
|
{shown.loading ? "Zpracovávám…" : shown.confirmText}
|
||||||
</MuiButton>
|
</MuiButton>
|
||||||
</DialogActions>
|
</DialogActions>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user