chore(prettier): fix all files

This commit is contained in:
Elian Doran
2025-01-09 18:07:02 +02:00
parent 19ee861699
commit 4cbb529fd4
571 changed files with 23226 additions and 23940 deletions

View File

@@ -51,16 +51,15 @@ export default class MoveToDialog extends BasicWidget {
this.$noteAutoComplete = this.$widget.find(".move-to-note-autocomplete");
this.$noteList = this.$widget.find(".move-to-note-list");
this.$form.on('submit', () => {
this.$form.on("submit", () => {
const notePath = this.$noteAutoComplete.getSelectedNotePath();
if (notePath) {
this.$widget.modal('hide');
this.$widget.modal("hide");
const {noteId, parentNoteId} = treeService.getNoteIdAndParentIdFromUrl(notePath);
froca.getBranchId(parentNoteId, noteId).then(branchId => this.moveNotesTo(branchId));
}
else {
const { noteId, parentNoteId } = treeService.getNoteIdAndParentIdFromUrl(notePath);
froca.getBranchId(parentNoteId, noteId).then((branchId) => this.moveNotesTo(branchId));
} else {
logError(t("move_to.error_no_path"));
}
@@ -68,12 +67,12 @@ export default class MoveToDialog extends BasicWidget {
});
}
async moveBranchIdsToEvent({branchIds}) {
async moveBranchIdsToEvent({ branchIds }) {
this.movedBranchIds = branchIds;
utils.openDialog(this.$widget);
this.$noteAutoComplete.val('').trigger('focus');
this.$noteAutoComplete.val("").trigger("focus");
this.$noteList.empty();