chore(client/ts): port bulk_actions/add_relation

This commit is contained in:
Elian Doran 2024-12-21 14:39:36 +02:00
parent 6f32f21ac4
commit 27ed750d48
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,7 @@ function fullTextSearch($el: JQuery<HTMLElement>, options: Options){
setTimeout(() => { options.fastSearch = true; }, 100);
}
function initNoteAutocomplete($el: JQuery<HTMLElement>, options: Options) {
function initNoteAutocomplete($el: JQuery<HTMLElement>, options?: Options) {
if ($el.hasClass("note-autocomplete-input") || utils.isMobile()) {
// clear any event listener added in previous invocation of this function
$el.off('autocomplete:noteselected');

View File

@ -6,6 +6,8 @@ import FAttribute from "../../entities/fattribute.js";
interface ActionDefinition {
script: string;
relationName: string;
targetNoteId: string;
}
export default abstract class AbstractBulkAction {