Fix tests and build

This commit is contained in:
Tanya Fomina 2022-08-05 16:14:21 +03:00
commit da1dd6f30e
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@ export default class DeleteTune implements BlockTune {
confirmation: {
icon: $.svg('cross', 14, 14).outerHTML,
label: 'Click to delete',
name: 'delete',
onActivate: (item, e): void => this.handleClick(e),
},
};

View file

@ -259,7 +259,7 @@ export default class Toolbox extends EventsDispatcher<ToolboxEvent> {
icon: toolboxItem.icon,
label: I18n.t(I18nInternalNS.toolNames, toolboxItem.title || _.capitalize(tool.name)),
name: tool.name,
onClick: (e): void => {
onActivate: (e): void => {
this.toolButtonActivated(tool.name, toolboxItem.data);
},
secondaryLabel: tool.shortcut ? _.beautifyShortcut(tool.shortcut) : '',