removeEvents(id) {
    const eventToRemove = document.querySelector(`[data-identity="${id}"]`);
    eventToRemove.remove();
    // make "No active Events" visible when there are no current events
    if (this.elementList.eventList.childElementCount === 1 && !this.elementList.noActiveEvent.classList.contains('activated')) {
      this.elementList.noActiveEvent.classList.toggle('activated');
    }
  }
// removes event from event tab. expects 'data-identity' of the event
removes event from event tab. expects 'data-identity' of the event
removes event from event tab . expects ' data - identity ' of the event
removeEvents(id) {
    const eventToRemove = document.querySelector(`[data-identity="${id}"]`);
    eventToRemove.remove();
    if (this.elementList.eventList.childElementCount === 1 && !this.elementList.noActiveEvent.classList.contains('activated')) {
      this.elementList.noActiveEvent.classList.toggle('activated');
    }
  }
removeEvents ( id ) { const eventToRemove = document . querySelector ( ` ${ id } ` ) ; eventToRemove . remove ( ) ; if ( this . elementList . eventList . childElementCount === 1 && ! this . elementList . noActiveEvent . classList . contains ( 'activated' ) ) { this . elementList . noActiveEvent . classList . toggle ( 'activated' ) ; } }
removes event from event tab.
removes event from event tab .
// make "No active Events" visible when there are no current events