incident page fixed

This commit is contained in:
Alex Holliday committed 2026-02-03 23:45:23 +00:00
1 parent d469590ef3
commit 4f3bcd4624
3 files changed
+20 -11

No files matched your search

+10 -8
View File
@@ -59,14 +59,16 @@ export const DialogInput = ({
>
{cancelText ?? t("common.buttons.cancel")}
</Button>
<Button
loading={loading}
variant="contained"
color={confirmColor}
onClick={onConfirm}
>
{confirmText ?? t("common.buttons.confirm")}
</Button>
{onConfirm && (
<Button
loading={loading}
variant="contained"
color={confirmColor}
onClick={onConfirm}
>
{confirmText ?? t("common.buttons.confirm")}
</Button>
)}
</DialogActions>
</Dialog>
);
@@ -22,13 +22,15 @@ export const DialogIncidentDetails = ({
}: DialogIncidentDetailsProps) => {
const { t } = useTranslation();
const isActive = incident?.status === true;
return (
<Dialog
open={open}
onCancel={onClose}
onConfirm={onResolve}
cancelText={t("common.buttons.cancel")}
confirmText={t("pages.incidents.dialog.details.resolve")}
onConfirm={isActive ? onResolve : undefined}
cancelText={t("common.buttons.close")}
confirmText={isActive ? t("pages.incidents.dialog.details.resolve") : undefined}
maxWidth="sm"
fullWidth
>
+5
View File
@@ -188,6 +188,7 @@
},
"buttons": {
"cancel": "Cancel",
"close": "Close",
"configure": "Configure",
"confirm": "Confirm",
"create": "Create",
@@ -653,6 +654,10 @@
"overview": "Overview",
"resolutionDetails": "Resolution details",
"resolutionType": "Type:",
"resolutionTypes": {
"automatic": "Automatic",
"manual": "Manual"
},
"resolve": "Resolve Incident",
"resolvedAt": "Resolved at:",
"resolvedBy": "Resolved by:",