mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
c8f60547da
commit
7587b91a5c
5 changed files with 52 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ import {isTouchDevice} from "../../util/functions";
|
|||
import {App} from "../../index";
|
||||
import {refreshFileTree} from "../../dialog/processSystem";
|
||||
import {hideTooltip, showTooltip} from "../../dialog/tooltip";
|
||||
import * as dayjs from "dayjs";
|
||||
|
||||
export class Files extends Model {
|
||||
public element: HTMLElement;
|
||||
|
|
@ -322,6 +323,14 @@ export class Files extends Model {
|
|||
x: event.clientX,
|
||||
y: event.clientY
|
||||
});
|
||||
} else if (type === "addLocal") {
|
||||
fetchPost("/api/filetree/moveLocalShorthands", {
|
||||
"notebook": notebookId,
|
||||
"path": dayjs().format("YYYYMMDDHHmmss")
|
||||
});
|
||||
this.element.querySelectorAll('[data-type="addLocal"]').forEach(item => {
|
||||
item.remove();
|
||||
})
|
||||
}
|
||||
}
|
||||
if (type === "more-file") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue