diff --git a/frontend/src/components/DropdownMultiSelectButton.vue b/frontend/src/components/DropdownMultiSelectButton.vue index 08dee2e..979c59d 100644 --- a/frontend/src/components/DropdownMultiSelectButton.vue +++ b/frontend/src/components/DropdownMultiSelectButton.vue @@ -45,6 +45,7 @@ diff --git a/frontend/src/views/surveyresults/SurveyResultsFull.vue b/frontend/src/views/surveyresults/SurveyResultsFull.vue index 9d6bd12..ea3da5c 100644 --- a/frontend/src/views/surveyresults/SurveyResultsFull.vue +++ b/frontend/src/views/surveyresults/SurveyResultsFull.vue @@ -5,16 +5,16 @@

Anime Series

- + Columns - +

Anime OVAs / ONAs / Movies / Specials

- + Columns - +
@@ -43,11 +43,11 @@ class TableData { entries: AnimeTableEntryData[] = []; isColumnVisible: Partial> = {}; - get processedColumns(): AnimeTableColumnData[] { + get visibleColumns(): AnimeTableColumnData[] { return this.columns.filter(column => this.isColumnVisible[column.resultType]); } - get columnsAsSelectorItems(): SelectInputOptions { + get columnsAsSelectInputOptions(): SelectInputOptions { return new SelectInputOptions(this.columns.map(column => ({ displayName: getResultTypeName(column.resultType, true), value: column.resultType, @@ -55,7 +55,7 @@ class TableData { } get visibleColumnTypes(): ResultType[] { - return this.processedColumns.map(column => column.resultType); + return this.visibleColumns.map(column => column.resultType); } set visibleColumnTypes(value: ResultType[]) { this.columns.forEach(column => this.isColumnVisible[column.resultType] = value.includes(column.resultType)); diff --git a/frontend/src/views/surveyresults/components/SimpleResultsTable.vue b/frontend/src/views/surveyresults/components/SimpleResultsTable.vue index 47579f4..dddd706 100644 --- a/frontend/src/views/surveyresults/components/SimpleResultsTable.vue +++ b/frontend/src/views/surveyresults/components/SimpleResultsTable.vue @@ -55,7 +55,7 @@ import type { RouteLocationNormalized } from 'vue-router'; const props = defineProps<{ ranking: { anime: AnimeViewModel, result: number, extraResult?: number }[]; - resultTypes: ResultType[]; // Must have either length 1 or 2 + resultTypes: [ResultType] | [ResultType, ResultType]; // Must have either length 1 or 2 isAnimeSeries?: boolean; top: number;