From 86ef5ee9da11840142fe5e5083e4df54664416f9 Mon Sep 17 00:00:00 2001 From: Matias Arriola Date: Tue, 25 Jan 2022 11:21:15 -0300 Subject: [PATCH] Add back menu tooltips --- packages/mindplot/src/components/widget/Menu.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/mindplot/src/components/widget/Menu.ts b/packages/mindplot/src/components/widget/Menu.ts index 62f43a39..4bc2f225 100644 --- a/packages/mindplot/src/components/widget/Menu.ts +++ b/packages/mindplot/src/components/widget/Menu.ts @@ -325,6 +325,21 @@ class Menu extends IMenu { Menu._registerTooltip('discard', $msg('DISCARD_CHANGES')); } + const shareElem = $('#shareIt'); + if (shareElem.length !== 0) { + Menu._registerTooltip('shareIt', $msg('COLLABORATE')); + } + + const publishElem = $('#publishIt'); + if (publishElem.length !== 0) { + Menu._registerTooltip('publishIt', $msg('PUBLISH')); + } + + const historyElem = $('#history'); + if (historyElem.length !== 0) { + Menu._registerTooltip('history', $msg('HISTORY')); + } + // Keyboard Shortcuts Action ... const keyboardShortcut = $('#keyboardShortcuts'); if (keyboardShortcut.length !== 0) {