- file download inside search detail page

This commit is contained in:
Arno Kaimbacher 2021-12-15 13:22:32 +01:00
parent 6cb6f178a9
commit 3e73b91cf0
3 changed files with 22 additions and 12 deletions

View file

@ -141,13 +141,13 @@ export class DbDataset {
}
public hasEmbargoPassed(): boolean {
const embargoDate = moment(this.embargo_date);
if (embargoDate == null) {
if (this.embargo_date === null) {
return true;
}
const embargoDate = moment(this.embargo_date);
const todayDate = moment.now();
// Embargo has passed on the day after the specified date
// Embargo has passed on the day after the specified date
if (embargoDate.isBefore(todayDate)) {
return true;
} else {