From 0a5686d9bc8876796ed9f3f1ba32f6af80400077 Mon Sep 17 00:00:00 2001 From: Soufiane Date: Fri, 13 Oct 2023 16:10:07 +0200 Subject: [PATCH] Show task name in sticky header for Viewer users [SCI-9524] (#6432) --- app/javascript/vue/mixins/moduleNameObserver.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/mixins/moduleNameObserver.js b/app/javascript/vue/mixins/moduleNameObserver.js index a86f60ee3..66eb09545 100644 --- a/app/javascript/vue/mixins/moduleNameObserver.js +++ b/app/javascript/vue/mixins/moduleNameObserver.js @@ -21,7 +21,8 @@ export default { }, methods: { observeChanges() { - const targetNode = document.querySelector('.my_module-name .view-mode'); + const targetNode = document + .querySelector('.my_module-name .view-mode, .my_module-name .name-readonly-placeholder'); if (!targetNode) return; this.moduleName = targetNode.textContent;