This commit is contained in:
parent
29fc04e4a4
commit
47d79042fd
3 changed files with 11 additions and 1 deletions
|
@ -760,6 +760,11 @@ export class Files extends Model {
|
|||
const removeElement = this.closeElement.querySelector(`li[data-url="${data.data.box}"]`);
|
||||
if (removeElement) {
|
||||
removeElement.remove();
|
||||
const counterElement = this.closeElement.querySelector(".counter");
|
||||
counterElement.textContent = (parseInt(counterElement.textContent) - 1).toString();
|
||||
if (counterElement.textContent === "0") {
|
||||
counterElement.classList.add("fn__none");
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
@ -38,7 +38,7 @@ export const genNotebookOption = (id: string, notebookId?: string) => {
|
|||
export const onGetnotebookconf = (data: INotebookConf) => {
|
||||
const titleHTML = `<div class="fn__flex">${escapeHtml(data.name)}
|
||||
<div class="fn__space"></div>
|
||||
<button class="b3-button b3-button--small">${window.siyuan.languages.copy} ID</button></div>`;
|
||||
<button class="b3-button b3-button--small fn__flex-center">${window.siyuan.languages.copy} ID</button></div>`;
|
||||
const contentHTML = `<div class="b3-dialog__content" style="background-color: var(--b3-theme-background);">
|
||||
<div class="b3-label config__item">
|
||||
${window.siyuan.languages.fileTree12}
|
||||
|
|
|
@ -427,6 +427,11 @@ export class MobileFiles extends Model {
|
|||
const removeElement = this.closeElement.querySelector(`li[data-url="${data.data.box}"]`);
|
||||
if (removeElement) {
|
||||
removeElement.remove();
|
||||
const counterElement = this.closeElement.querySelector(".counter");
|
||||
counterElement.textContent = (parseInt(counterElement.textContent) - 1).toString();
|
||||
if (counterElement.textContent === "0") {
|
||||
counterElement.classList.add("fn__none");
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue