Fixed issue when viewing the public DMPs
This commit is contained in:
parent
a728e7da4a
commit
3ba34e1e69
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue