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