mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 03:00:41 +01:00
added a "script executor" ribbon widget
This commit is contained in:
@@ -82,7 +82,12 @@ function updateDisplayedShortcuts($container) {
|
||||
if (action) {
|
||||
const title = $(el).attr('title');
|
||||
const shortcuts = action.effectiveShortcuts.join(', ');
|
||||
const newTitle = !title || !title.trim() ? shortcuts : `${title} (${shortcuts})`;
|
||||
|
||||
if (title?.includes(shortcuts)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const newTitle = !title?.trim() ? shortcuts : `${title} (${shortcuts})`;
|
||||
|
||||
$(el).attr('title', newTitle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user