Show task name in sticky header for Viewer users [SCI-9524] (#6432)

This commit is contained in:
Soufiane 2023-10-13 16:10:07 +02:00 committed by GitHub
parent 86d337541a
commit 0a5686d9bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;