From 311a4c70e8ffce3b80312c88e54f79f004eb3cbe Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Wed, 12 Aug 2020 13:40:19 -0700 Subject: [PATCH] Title new buttons with label if action undefined --- notebook/static/notebook/js/toolbar.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/toolbar.js b/notebook/static/notebook/js/toolbar.js index 295975c302..0022c44287 100644 --- a/notebook/static/notebook/js/toolbar.js +++ b/notebook/static/notebook/js/toolbar.js @@ -92,10 +92,14 @@ define(['jquery','base/js/i18n'], function($, i18n) { action = that.actions.get(el.action); action_name = el.action } + var title = el.label; + if(action && action.help) { + title = i18n.msg._(action.help) || el.label; + } var button = $('