Skip to content

Commit

Permalink
display ngram download type in download history
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Oct 26, 2023
1 parent da17816 commit d3bd098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/models/search-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d3bd098

Please sign in to comment.