mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
f69247b24a
commit
84b7b0aa8b
1 changed files with 15 additions and 10 deletions
|
|
@ -46,7 +46,7 @@ export class Inbox extends Model {
|
||||||
<div class="fn__loading fn__none">
|
<div class="fn__loading fn__none">
|
||||||
<img width="64px" src="/stage/loading-pure.svg"></div>
|
<img width="64px" src="/stage/loading-pure.svg"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" style="min-height: auto"></div>
|
<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" style="min-height: auto;background-color: var(--b3-theme-background)"></div>
|
||||||
<div class="fn__flex-1"></div>`;
|
<div class="fn__flex-1"></div>`;
|
||||||
/// #else
|
/// #else
|
||||||
this.element.classList.add("fn__flex-column", "file-tree", "sy__inbox");
|
this.element.classList.add("fn__flex-column", "file-tree", "sy__inbox");
|
||||||
|
|
@ -71,7 +71,7 @@ export class Inbox extends Model {
|
||||||
<div class="fn__loading fn__none">
|
<div class="fn__loading fn__none">
|
||||||
<img width="64px" src="/stage/loading-pure.svg"></div>
|
<img width="64px" src="/stage/loading-pure.svg"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" style="min-height: auto"></div>
|
<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" style="min-height: auto;background-color: var(--b3-theme-background)"></div>
|
||||||
<div class="fn__flex-1"></div>`;
|
<div class="fn__flex-1"></div>`;
|
||||||
/// #endif
|
/// #endif
|
||||||
const countElement = this.element.querySelector(".inboxSelectCount");
|
const countElement = this.element.querySelector(".inboxSelectCount");
|
||||||
|
|
@ -284,14 +284,19 @@ ${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
||||||
private move(ids: string[]) {
|
private move(ids: string[]) {
|
||||||
movePathTo((toPath, toNotebook) => {
|
movePathTo((toPath, toNotebook) => {
|
||||||
ids.forEach(item => {
|
ids.forEach(item => {
|
||||||
|
fetchPost("/api/inbox/getShorthand", {
|
||||||
|
id: item
|
||||||
|
}, (response) => {
|
||||||
fetchPost("/api/filetree/createDoc", {
|
fetchPost("/api/filetree/createDoc", {
|
||||||
notebook: toNotebook[0],
|
notebook: toNotebook[0],
|
||||||
path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"),
|
path: pathPosix().join(getDisplayName(toPath[0], false, true), Lute.NewNodeID() + ".sy"),
|
||||||
title: replaceFileName(this.data[item].shorthandTitle),
|
title: replaceFileName(response.data.shorthandTitle),
|
||||||
md: this.data[item].shorthandContent,
|
md: response.data.shorthandContent,
|
||||||
}, () => {
|
}, () => {
|
||||||
this.remove(item);
|
this.remove(item);
|
||||||
});
|
});
|
||||||
|
})
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue