Skip to content

Instantly share code, notes, and snippets.

import Component from '@glimmer/component';
export default class extends Component {
downHandler(connections, currentIndex) {
connections[currentIndex].active = false;
if (currentIndex < connections.length - 1) {
currentIndex += 1;
}
connections[currentIndex].active = true;
return currentIndex;