mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 19:48:18 +08:00
Show task name in sticky header for Viewer users [SCI-9524] (#6432)
This commit is contained in:
parent
86d337541a
commit
0a5686d9bc
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue