- file download inside search detail page
This commit is contained in:
parent
6cb6f178a9
commit
3e73b91cf0
3 changed files with 22 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue