incident page fixed
This commit is contained in:
1 parent
d469590ef3
commit
4f3bcd4624
3 files changed
+20
-11
No files matched your search
@@ -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
|
||||
>
|
||||
|
||||
@@ -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:",
|
||||
|
||||
Reference in new issue
Block a user