Problems: fix initial severity for ack modal

This commit is contained in:
Alexander Zobnin
2020-05-18 19:46:05 +03:00
parent 959cea2061
commit cd3afb65c2
2 changed files with 4 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ interface Props {
canAck?: boolean;
canClose?: boolean;
isOpen?: boolean;
severity?: number;
withBackdrop?: boolean;
onSubmit: (data?: AckProblemData) => Promise<any> | any;
onClose?: () => void;
@@ -66,7 +67,7 @@ export class AckModal extends PureComponent<Props, State> {
acknowledge: false,
closeProblem: false,
changeSeverity: false,
selectedSeverity: 0,
selectedSeverity: props.severity || 0,
loading: false,
};