From d3bd0987372d4c9c07c4b1c5aff24776ad3f7744 Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Thu, 26 Oct 2023 12:03:50 +0200 Subject: [PATCH] display ngram download type in download history --- .../app/history/download-history/download-history.component.ts | 3 ++- frontend/src/app/models/search-results.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/history/download-history/download-history.component.ts b/frontend/src/app/history/download-history/download-history.component.ts index 24b495aab..bf926fdcb 100644 --- a/frontend/src/app/history/download-history/download-history.component.ts +++ b/frontend/src/app/history/download-history/download-history.component.ts @@ -39,7 +39,8 @@ export class DownloadHistoryComponent extends HistoryDirective implements OnInit const displayNames = { search_results: 'Search results', date_term_frequency: 'Term frequency', - aggregate_term_frequency: 'Term frequency' + aggregate_term_frequency: 'Term frequency', + ngram: 'Neighbouring words' // timeline/histogram distinction is relevant for backend but not for the user }; return displayNames[type]; diff --git a/frontend/src/app/models/search-results.ts b/frontend/src/app/models/search-results.ts index 150df3c74..a9d5edbff 100644 --- a/frontend/src/app/models/search-results.ts +++ b/frontend/src/app/models/search-results.ts @@ -102,7 +102,7 @@ export type TermFrequencyDownloadParameters = DateTermFrequencyParameters[] | Ag export type LimitedResultsDownloadParameters = ResultsDownloadParameters & { size: number } & DownloadOptions; -export type DownloadType = 'search_results' | 'aggregate_term_frequency' | 'date_term_frequency'; +export type DownloadType = 'search_results' | 'aggregate_term_frequency' | 'date_term_frequency' | 'ngram'; export type DownloadStatus = 'done' | 'working' | 'error'; export type DownloadParameters = TermFrequencyDownloadParameters | ResultsDownloadParameters;