get param for hiding non-testers

This commit is contained in:
Zhora Shalyapin 2025-03-20 08:42:58 +00:00
parent 43ff4dff97
commit 64f55efca8

14
main.js
View File

@ -1056,6 +1056,19 @@
} }
} }
function hideNonTesters() {
if (urlParams().get("test") == null) return
document.querySelectorAll(`td:nth-child(2)`).forEach(el => {
let innerHTML = el.innerHTML
let from = innerHTML.indexOf("Отчёты тестировщиков")
if (from == -1)
from = innerHTML.length
el.innerHTML = innerHTML.substring(from)
})
}
function getRows() { function getRows() {
return [...document.querySelectorAll('#props > tbody > tr')] return [...document.querySelectorAll('#props > tbody > tr')]
} }
@ -2144,6 +2157,7 @@
if (isRouteListPage()) { if (isRouteListPage()) {
addStageLink() addStageLink()
hideNonTesters()
} }
if (isRouteBuildPage()) { if (isRouteBuildPage()) {