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 { ...@@ -231,13 +231,16 @@ export default {
}, },
emptyStateData() { emptyStateData() {
const { const {
emptyState: { title, emptyClosedTabTitle, description }, emptyState: { title, emptyClosedTabTitle, description, cannotCreateIncidentDescription },
createIncidentBtnLabel, createIncidentBtnLabel,
} = this.$options.i18n; } = this.$options.i18n;
if (this.activeClosedTabHasNoIncidents) { if (this.activeClosedTabHasNoIncidents) {
return { title: emptyClosedTabTitle }; return { title: emptyClosedTabTitle };
} }
if (!this.canCreateIncident) {
return { title, description: cannotCreateIncidentDescription };
}
return { return {
title, title,
description, description,
......
...@@ -11,7 +11,10 @@ export const I18N = { ...@@ -11,7 +11,10 @@ export const I18N = {
title: s__('IncidentManagement|Display your incidents in a dedicated view'), title: s__('IncidentManagement|Display your incidents in a dedicated view'),
emptyClosedTabTitle: s__('IncidentManagement|There are no closed incidents'), emptyClosedTabTitle: s__('IncidentManagement|There are no closed incidents'),
description: s__( 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 "" ...@@ -18098,7 +18098,10 @@ msgstr ""
msgid "IncidentManagement|All" msgid "IncidentManagement|All"
msgstr "" 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 "" msgstr ""
msgid "IncidentManagement|Assignees" 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