mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
can't allow opening externally on attachment list
This commit is contained in:
@@ -76,6 +76,10 @@ class AppContext extends Component {
|
||||
$("body").append($renderedWidget);
|
||||
|
||||
$renderedWidget.on('click', "[data-trigger-command]", function() {
|
||||
if ($(this).hasClass("disabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
const commandName = $(this).attr('data-trigger-command');
|
||||
const $component = $(this).closest(".component");
|
||||
const component = $component.prop("component");
|
||||
|
||||
Reference in New Issue
Block a user