DMP editor. Show popup dialog when dmp is locked.
This commit is contained in:
parent
9161dbda56
commit
92b60c7c90
|
@ -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) {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Clone",
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Clone",
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Clone",
|
||||
"SAVE": "Save",
|
||||
"CANCEL": "Cancel"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Κλώνος",
|
||||
"SAVE": "Αποθήκευση",
|
||||
"CANCEL": "Ακύρωση"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Duplicar",
|
||||
"SAVE": "Guardar",
|
||||
"CANCEL": "Cancelar"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Klonovať",
|
||||
"SAVE": "Uložiť",
|
||||
"CANCEL": "Zrušiť"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Napravite kopiju",
|
||||
"SAVE": "Sačuvajte",
|
||||
"CANCEL": "Otkažite"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
|
@ -1052,6 +1052,10 @@
|
|||
"CLONE": "Çoğalt",
|
||||
"SAVE": "Kaydet",
|
||||
"CANCEL": "İptal"
|
||||
},
|
||||
"LOCKED":{
|
||||
"TITLE":"DMP is locked",
|
||||
"MESSAGE":"Somebody else is modifying the DMP at this moment. You may view the dataset but you cannot make any changes."
|
||||
}
|
||||
},
|
||||
"DMP-PROFILE-LISTING": {
|
||||
|
|
Loading…
Reference in New Issue