()
| 23 | const serviceContainer = document.createElement("div"); |
| 24 | |
| 25 | function stackServiceElements() { |
| 26 | CONFIG.services.forEach((name, index) => { |
| 27 | const el = CONFIG.servicesElement[name]; |
| 28 | |
| 29 | const [up, down] = el.querySelectorAll("button"); |
| 30 | if (CONFIG.services.length === 1) { |
| 31 | up.disabled = true; |
| 32 | down.disabled = true; |
| 33 | } else if (index === 0) { |
| 34 | up.disabled = true; |
| 35 | down.disabled = false; |
| 36 | } else if (index === CONFIG.services.length - 1) { |
| 37 | up.disabled = false; |
| 38 | down.disabled = true; |
| 39 | } else { |
| 40 | up.disabled = false; |
| 41 | down.disabled = false; |
| 42 | } |
| 43 | |
| 44 | serviceContainer.append(el); |
| 45 | }); |
| 46 | gridUpdateTabs?.(); |
| 47 | } |
| 48 | |
| 49 | function posCallback(el, dir) { |
| 50 | const id = el.dataset.id; |
no outgoing calls
no test coverage detected