Commit 59ac8e4e authored by Tristan Read's avatar Tristan Read Committed by Peter Leitzen

Update empty state to reflect permissions

parent 34ae179b
......@@ -231,13 +231,16 @@ export default {
},
emptyStateData() {
const {
emptyState: { title, emptyClosedTabTitle, description },
emptyState: { title, emptyClosedTabTitle, description, cannotCreateIncidentDescription },
createIncidentBtnLabel,
} = this.$options.i18n;
if (this.activeClosedTabHasNoIncidents) {
return { title: emptyClosedTabTitle };
}
if (!this.canCreateIncident) {
return { title, description: cannotCreateIncidentDescription };
}
return {
title,
description,
......
......@@ -11,7 +11,10 @@ export const I18N = {
title: s__('IncidentManagement|Display your incidents in a dedicated view'),
emptyClosedTabTitle: s__('IncidentManagement|There are no closed incidents'),
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.',
'IncidentManagement|All alerts promoted to incidents are automatically displayed within the list. You can also create a new incident using the button below.',
),
cannotCreateIncidentDescription: s__(
'IncidentManagement|All alerts promoted to incidents are automatically displayed within the list.',
),
},
};
......
......@@ -18098,7 +18098,10 @@ msgstr ""
msgid "IncidentManagement|All"
msgstr ""
msgid "IncidentManagement|All alerts promoted to incidents will automatically be displayed within the list. You can also create a new incident using the button below."
msgid "IncidentManagement|All alerts promoted to incidents are automatically displayed within the list."
msgstr ""
msgid "IncidentManagement|All alerts promoted to incidents are automatically displayed within the list. You can also create a new incident using the button below."
msgstr ""
msgid "IncidentManagement|Assignees"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment