mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
show badge for read-only (#135313)
This commit is contained in:
parent
4a6201785f
commit
8b078c3ad2
1 changed files with 11 additions and 0 deletions
|
@ -139,6 +139,17 @@ export async function mountApp(
|
|||
const embeddableEditorIncomingState = stateTransfer?.getIncomingEditorState(APP_ID);
|
||||
|
||||
addHelpMenuToAppChrome(coreStart.chrome, coreStart.docLinks);
|
||||
if (!lensServices.application.capabilities.visualize.save) {
|
||||
coreStart.chrome.setBadge({
|
||||
text: i18n.translate('xpack.lens.badge.readOnly.text', {
|
||||
defaultMessage: 'Read only',
|
||||
}),
|
||||
tooltip: i18n.translate('xpack.lens.badge.readOnly.tooltip', {
|
||||
defaultMessage: 'Unable to save visualizations to the library',
|
||||
}),
|
||||
iconType: 'glasses',
|
||||
});
|
||||
}
|
||||
coreStart.chrome.docTitle.change(
|
||||
i18n.translate('xpack.lens.pageTitle', { defaultMessage: 'Lens' })
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue