Skip to content

Commit 470b03f

Browse files
author
Maja Grubic
committed
Updating text
1 parent 8e1f5d4 commit 470b03f

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/legacy/core_plugins/kibana/public/dashboard/__tests__/__snapshots__/dashboard_empty_screen.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_empty_screen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export function DashboardEmptyScreen({
133133
const readonlyMode = page(
134134
constants.emptyDashboardTitle,
135135
false,
136-
constants.emptyDashboardContactOwner
136+
constants.emptyDashboardAdditionalPrivilege
137137
);
138138
const viewMode = page(constants.fillDashboardTitle, true);
139139
const editMode = (

src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_empty_screen_constants.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ import { i18n } from '@kbn/i18n';
2121

2222
/** READONLY VIEW CONSTANTS **/
2323
export const emptyDashboardTitle: string = i18n.translate('kbn.dashboard.emptyDashboardTitle', {
24-
defaultMessage: 'This dashboard is empty or you do not have permission to view.',
25-
});
26-
export const emptyDashboardContactOwner = i18n.translate('kbn.dashboard.emptyDashboardTitle', {
27-
defaultMessage: 'Please contact the owner of the dashboard if you think this is an error.',
24+
defaultMessage: 'This dashboard is empty.',
2825
});
26+
export const emptyDashboardAdditionalPrivilege = i18n.translate(
27+
'kbn.dashboard.emptyDashboardAdditionalPrivilege',
28+
{
29+
defaultMessage: 'You need additional privileges to edit this dashboard.',
30+
}
31+
);
2932
/** VIEW MODE CONSTANTS **/
3033
export const fillDashboardTitle: string = i18n.translate('kbn.dashboard.fillDashboardTitle', {
3134
defaultMessage: 'This dashboard is empty. Let\u2019s fill it up!',

0 commit comments

Comments
 (0)