Skip to content

Commit

Permalink
secondary option dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Palabola committed Oct 8, 2024
1 parent a18e369 commit 5bca76c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/pages/server-compare/server-compare.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,15 @@ export class ServerCompareComponent implements OnInit, AfterViewInit {
chart: JSON.parse(JSON.stringify(staticWebChartCompareTemplate)),
callbacks: staticWebChartTemplateCallbacks,
dropdown: undefined,
dropdown2: undefined,
data: [],
show_more: false,
},
{
chart: JSON.parse(JSON.stringify(redisChartTemplate)),
callbacks: redisChartTemplateCallbacks,
dropdown: undefined,
dropdown2: undefined,
data: [],
show_more: false,
}
Expand Down Expand Up @@ -396,7 +398,7 @@ export class ServerCompareComponent implements OnInit, AfterViewInit {
});
if(chart.chart.secondaryOptions?.length > 1) {
this.dropdownManager.initDropdown(chart.chart.id + '_button2', chart.chart.id + '_options2').then((dropdown) => {
chart.dropdown = dropdown;
chart.dropdown2 = dropdown;
});
}

Expand Down Expand Up @@ -1196,7 +1198,7 @@ export class ServerCompareComponent implements OnInit, AfterViewInit {
selectChartTemplateOption2(template: any, option: number) {
template.chart.selectedSecondaryOption = option;
this.generateMultiBarChart(template.chart);
template.dropdown?.hide();
template.dropdown2?.hide();
}

selectCompressMethod(method: any) {
Expand Down

0 comments on commit 5bca76c

Please sign in to comment.