|
|
|
@ -54,6 +54,7 @@ import { DmpToDatasetDialogComponent } from '../dmp-to-dataset/dmp-to-dataset-di
|
|
|
|
|
import { GrantEditorModel } from '@app/ui/grant/editor/grant-editor.model';
|
|
|
|
|
import { MatomoService } from '@app/core/services/matomo/matomo-service';
|
|
|
|
|
import { HttpClient } from '@angular/common/http';
|
|
|
|
|
import { PopupNotificationDialogComponent } from '@app/library/notification/popup/popup-notification.component';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-dmp-editor-component',
|
|
|
|
@ -188,6 +189,7 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
|
|
|
|
|
|
|
|
|
|
if(this.isUserMember()){
|
|
|
|
|
this.router.navigate(['plans', 'overview', itemId]);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.isFinalized = true;
|
|
|
|
|
this.formGroup.disable();
|
|
|
|
@ -234,6 +236,12 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
|
|
|
|
|
.subscribe(x => {
|
|
|
|
|
this.formChanged();
|
|
|
|
|
});
|
|
|
|
|
if(this.lockStatus){
|
|
|
|
|
this.dialog.open(PopupNotificationDialogComponent,{data:{
|
|
|
|
|
title:this.language.instant('DMP-EDITOR.LOCKED.TITLE'),
|
|
|
|
|
message:this.language.instant('DMP-EDITOR.LOCKED.MESSAGE')
|
|
|
|
|
}, maxWidth:'30em'});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
} else if (publicId != null) {
|
|
|
|
|