Skip to content

Commit c18ab88

Browse files
committed
Changed team filter to single select buttons
1 parent ee3365a commit c18ab88

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/component/circular-heatmap/circular-heatmap.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h2>Nothing to show</h2>
190190
<div class="team-filter">
191191
<mat-form-field class="team-chip-list">
192192
<mat-label>Team Filter</mat-label>
193-
<mat-chip-list multiple selectable>
193+
<mat-chip-list selectable>
194194
<mat-chip
195195
#c="matChip"
196196
(click)="toggleTeamSelection(c)"

src/app/component/circular-heatmap/circular-heatmap.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class CircularHeatmapComponent implements OnInit {
179179
let currChipValue = chip.value.replace(/\s/g, '');
180180
let visibilityUpdated = false;
181181
if (chip.selected) {
182-
this.selectedTeamChips = [...this.selectedTeamChips, currChipValue];
182+
this.selectedTeamChips = [currChipValue];
183183
if (currChipValue == 'All') {
184184
this.teamVisible = this.teamList;
185185
console.log('All', this.teamList);

0 commit comments

Comments
 (0)