mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🚨
This commit is contained in:
parent
968bcd433e
commit
62cf6411a0
7 changed files with 14 additions and 15 deletions
|
|
@ -282,10 +282,10 @@ export const setTitle = (title: string, protyle?: IProtyle) => {
|
|||
} else {
|
||||
title = title || "Untitled";
|
||||
if (protyle && protyle.disabled) {
|
||||
title = `[${window.siyuan.languages.editReadonly}] ${title}`
|
||||
title = `[${window.siyuan.languages.editReadonly}] ${title}`;
|
||||
}
|
||||
if (protyle && protyle.block.showAll) {
|
||||
title = `[${window.siyuan.languages.enter}] ${title}`
|
||||
title = `[${window.siyuan.languages.enter}] ${title}`;
|
||||
}
|
||||
document.title = `${title} - ${workspaceName} - ${window.siyuan.languages.siyuanNote} v${Constants.SIYUAN_VERSION}`;
|
||||
dragElement.textContent = title;
|
||||
|
|
@ -298,10 +298,10 @@ export const updateTitle = (readonly?: boolean, zoomIn?: boolean) => {
|
|||
if (typeof readonly === "boolean") {
|
||||
if (readonly) {
|
||||
if (title.indexOf(window.siyuan.languages.editReadonly) === -1) {
|
||||
setTitle(`[${window.siyuan.languages.editReadonly}] ${title}`)
|
||||
setTitle(`[${window.siyuan.languages.editReadonly}] ${title}`);
|
||||
}
|
||||
} else {
|
||||
setTitle(title.replace(`[${window.siyuan.languages.editReadonly}] `, ""))
|
||||
setTitle(title.replace(`[${window.siyuan.languages.editReadonly}] `, ""));
|
||||
}
|
||||
}
|
||||
if (typeof zoomIn === "boolean") {
|
||||
|
|
@ -310,10 +310,10 @@ export const updateTitle = (readonly?: boolean, zoomIn?: boolean) => {
|
|||
setTitle(`[${window.siyuan.languages.enter}] ${title}`);
|
||||
}
|
||||
} else {
|
||||
setTitle(title.replace(`[${window.siyuan.languages.enter}] `, ""))
|
||||
setTitle(title.replace(`[${window.siyuan.languages.enter}] `, ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const downloadProgress = (data: { id: string, percent: number }) => {
|
||||
const bazzarElement = document.getElementById("configBazaarReadme");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue