mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
search definition action refactoring
This commit is contained in:
@@ -200,16 +200,6 @@ export default class SearchDefinitionWidget extends TabAwareWidget {
|
||||
this.refresh();
|
||||
});
|
||||
|
||||
this.$widget.on('click', '[data-action-conf-del]', async event => {
|
||||
const attributeId = $(event.target).closest('[data-attribute-id]').attr('data-attribute-id');
|
||||
|
||||
await server.remove(`notes/${this.noteId}/attributes/${attributeId}`);
|
||||
|
||||
await ws.waitForMaxKnownEntityChangeId();
|
||||
|
||||
this.refresh();
|
||||
});
|
||||
|
||||
this.$searchOptions = this.$widget.find('.search-options');
|
||||
this.$actionOptions = this.$widget.find('.action-options');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user