diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts index 375924b36..cef85543b 100644 --- a/app/src/protyle/header/Title.ts +++ b/app/src/protyle/header/Title.ts @@ -352,9 +352,6 @@ export class Title { } public render(protyle: IProtyle, response: IWebSocketData) { - if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === protyle.block.rootID) { - return false; - } if (protyle.options.render.hideTitleOnZoom) { if (protyle.block.showAll) { this.element.classList.add("fn__none"); @@ -362,6 +359,9 @@ export class Title { this.element.classList.remove("fn__none"); } } + if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === protyle.block.rootID) { + return false; + } this.element.setAttribute("data-node-id", protyle.block.rootID); if (response.data.ial[Constants.CUSTOM_RIFF_DECKS]) { this.element.setAttribute(Constants.CUSTOM_RIFF_DECKS, response.data.ial[Constants.CUSTOM_RIFF_DECKS]); diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.ts index 7ec498cc4..4c5206946 100644 --- a/app/src/protyle/util/onGet.ts +++ b/app/src/protyle/util/onGet.ts @@ -65,7 +65,7 @@ export const onGet = (options: { options.protyle.block.parentID = options.data.data.parentID; options.protyle.block.parent2ID = options.data.data.parent2ID; options.protyle.block.rootID = options.data.data.rootID; - options.protyle.block.showAll = false; + options.protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL); options.protyle.block.mode = options.data.data.mode; options.protyle.block.blockCount = options.data.data.blockCount; options.protyle.block.scroll = options.data.data.scroll; @@ -143,8 +143,6 @@ const setHTML = (options: { } }); options.content = doc.body.innerHTML; - - protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL); const REMOVED_OVER_HEIGHT = protyle.contentElement.clientHeight * 8; const updateReadonly = typeof options.updateReadonly === "undefined" ? protyle.wysiwyg.element.innerHTML === "" : options.updateReadonly; if (options.action.includes(Constants.CB_GET_APPEND)) {