Fixed issue when viewing the public DMPs

This commit is contained in:
George Kalampokis 2020-07-08 18:23:06 +03:00
parent a728e7da4a
commit 3ba34e1e69
1 changed files with 5 additions and 1 deletions

View File

@ -23,8 +23,8 @@ import { DmpUploadDialogue } from './upload-dialogue/dmp-upload-dialogue.compone
import { UiNotificationService, SnackBarNotificationLevel } from '@app/core/services/notification/ui-notification-service';
import { isNullOrUndefined } from 'util';
import { AuthService } from '@app/core/services/auth/auth.service';
import { DmpCriteriaDialogComponent } from './criteria/dmp-criteria-dialog.component';
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
import { DmpCriteriaDialogComponent } from './criteria/dmp-criteria-dialog.component';
@Component({
@ -248,6 +248,10 @@ export class DmpListingComponent extends BaseComponent implements OnInit, IBread
getDefaultCriteria(): DmpCriteria {
const defaultCriteria = new DmpCriteria();
if (this.isPublic) {
defaultCriteria.isPublic = true;
defaultCriteria.onlyPublic = true;
}
return defaultCriteria;
}