mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
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}"]`);
|
const removeElement = this.closeElement.querySelector(`li[data-url="${data.data.box}"]`);
|
||||||
if (removeElement) {
|
if (removeElement) {
|
||||||
removeElement.remove();
|
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;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ export const genNotebookOption = (id: string, notebookId?: string) => {
|
||||||
export const onGetnotebookconf = (data: INotebookConf) => {
|
export const onGetnotebookconf = (data: INotebookConf) => {
|
||||||
const titleHTML = `<div class="fn__flex">${escapeHtml(data.name)}
|
const titleHTML = `<div class="fn__flex">${escapeHtml(data.name)}
|
||||||
<div class="fn__space"></div>
|
<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);">
|
const contentHTML = `<div class="b3-dialog__content" style="background-color: var(--b3-theme-background);">
|
||||||
<div class="b3-label config__item">
|
<div class="b3-label config__item">
|
||||||
${window.siyuan.languages.fileTree12}
|
${window.siyuan.languages.fileTree12}
|
||||||
|
|
|
||||||
|
|
@ -427,6 +427,11 @@ export class MobileFiles extends Model {
|
||||||
const removeElement = this.closeElement.querySelector(`li[data-url="${data.data.box}"]`);
|
const removeElement = this.closeElement.querySelector(`li[data-url="${data.data.box}"]`);
|
||||||
if (removeElement) {
|
if (removeElement) {
|
||||||
removeElement.remove();
|
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;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue