mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -56,7 +56,7 @@ export const rename = (options: {
|
||||
if (window.siyuan.config.readonly) {
|
||||
return;
|
||||
}
|
||||
const initialName = options.empty ? "" : Lute.UnEscapeHTMLStr(options.name);
|
||||
const initialName = options.empty ? "" : options.name;
|
||||
const dialog = new Dialog({
|
||||
title: window.siyuan.languages.rename,
|
||||
content: `<div class="b3-dialog__content"><input class="b3-text-field fn__block" value=""></div>
|
||||
|
||||
@@ -36,7 +36,8 @@ import {setStorageVal} from "../protyle/util/compatibility";
|
||||
|
||||
export const setPanelFocus = (element: Element, isSaveLayout = true) => {
|
||||
if (element.getAttribute("data-type") === "wnd") {
|
||||
setTitle(element.querySelector('.layout-tab-bar .item--focus[data-type="tab-header"] .item__text')?.textContent || "", true);
|
||||
const title = element.querySelector('.layout-tab-bar .item--focus[data-type="tab-header"] .item__text')?.textContent || "";
|
||||
setTitle(title, title ? false : true);
|
||||
}
|
||||
if (element.classList.contains("layout__tab--active") || element.classList.contains("layout__wnd--active")) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user