Skip to content

Instantly share code, notes, and snippets.

View bjbatten's full-sized avatar

Brian Batten bjbatten

View GitHub Profile
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;