icon="plus"
variant="primary"
onClick={this.handleCreateResolutionNote}
- disabled={isResolutionNoteTextEmpty || incident.is_restricted}
+ disabled={isResolutionNoteTextEmpty}
>
Add resolution note
@@ -663,10 +645,8 @@ function Incident({ incident }: { incident: Alert; datetimeReference: string })
function GroupedIncidentsList({
id,
getIncidentDatetimeReference,
- disabled,
}: {
id: string;
- disabled: boolean;
getIncidentDatetimeReference: (incident: GroupedAlert) => string;
}) {
const store = useStore();
@@ -695,26 +675,13 @@ function GroupedIncidentsList({
contentClassName={cx('incidents-content')}
>
{alerts.map((alert) => (
-
+
))}
);
}
-function GroupedIncident({
- incident,
- datetimeReference,
- disabled,
-}: {
- incident: GroupedAlert;
- datetimeReference: string;
- disabled: boolean;
-}) {
+function GroupedIncident({ incident, datetimeReference }: { incident: GroupedAlert; datetimeReference: string }) {
const store = useStore();
const [incidentRawResponse, setIncidentRawResponse] = useState<{ id: string; raw_request_data: any }>(undefined);
const [isModalOpen, setIsModalOpen] = useState(false);
@@ -762,7 +729,7 @@ function GroupedIncident({
- openIncidentResponse(incident)} disabled={disabled} />
+ openIncidentResponse(incident)} />
@@ -818,12 +785,7 @@ function AttachedIncidentsList({
#{incident.inside_organization_number} {incident.render_for_web.title}
-