mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 Supports local shorthands on Android https://github.com/siyuan-note/siyuan/issues/14414
This commit is contained in:
parent
f43699b2c4
commit
1cb8520700
4 changed files with 151 additions and 87 deletions
|
|
@ -26,7 +26,6 @@ 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;
|
||||
|
|
@ -325,8 +324,7 @@ export class Files extends Model {
|
|||
});
|
||||
} else if (type === "addLocal") {
|
||||
fetchPost("/api/filetree/moveLocalShorthands", {
|
||||
"notebook": notebookId,
|
||||
"path": dayjs().format("YYYY-MM-DD HH:mm:ss")
|
||||
"notebook": notebookId
|
||||
});
|
||||
this.element.querySelectorAll('[data-type="addLocal"]').forEach(item => {
|
||||
item.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue