2020-07-28 12:09:49 +00:00
import { s _ _ , _ _ } from '~/locale' ;
2020-07-23 09:09:18 +00:00
export const I18N = {
errorMsg : s _ _ ( 'IncidentManagement|There was an error displaying the incidents.' ) ,
noIncidents : s _ _ ( 'IncidentManagement|No incidents to display.' ) ,
2020-07-23 18:10:06 +00:00
unassigned : s _ _ ( 'IncidentManagement|Unassigned' ) ,
2020-07-25 00:09:23 +00:00
createIncidentBtnLabel : s _ _ ( 'IncidentManagement|Create incident' ) ,
2020-08-05 03:10:58 +00:00
unPublished : s _ _ ( 'IncidentManagement|Unpublished' ) ,
2020-08-06 09:09:42 +00:00
searchPlaceholder : _ _ ( 'Search results…' ) ,
2020-08-19 12:10:17 +00:00
emptyState : {
title : s _ _ ( 'IncidentManagement|Display your incidents in a dedicated view' ) ,
description : s _ _ (
'IncidentManagement|All alerts promoted to incidents will automatically be displayed within the list. You can also create a new incident using the button below.' ,
) ,
} ,
2020-07-23 09:09:18 +00:00
} ;
2020-07-28 12:09:49 +00:00
2020-08-13 18:10:36 +00:00
export const INCIDENT _STATUS _TABS = [
2020-07-31 12:10:02 +00:00
{
title : s _ _ ( 'IncidentManagement|Open' ) ,
2020-08-13 18:10:36 +00:00
status : 'OPENED' ,
2020-07-31 12:10:02 +00:00
filters : 'opened' ,
} ,
{
title : s _ _ ( 'IncidentManagement|Closed' ) ,
2020-08-13 18:10:36 +00:00
status : 'CLOSED' ,
2020-07-31 12:10:02 +00:00
filters : 'closed' ,
} ,
{
2020-08-06 09:09:42 +00:00
title : s _ _ ( 'IncidentManagement|All' ) ,
2020-08-13 18:10:36 +00:00
status : 'ALL' ,
2020-07-31 12:10:02 +00:00
filters : 'all' ,
} ,
] ;
2020-07-28 12:09:49 +00:00
export const INCIDENT _SEARCH _DELAY = 300 ;
2020-08-25 09:52:44 +00:00
export const DEFAULT _PAGE _SIZE = 20 ;