mirror of
https://github.com/nasa/openmct.git
synced 2025-01-19 11:17:04 +00:00
Disallow editor Edit mode when object is locked (#3208)
* Don't allow editor edit if object is locked * Adds log statement * Use capture phase for onDragOver Co-authored-by: Deep Tailor <deep.j.tailor@nasa.gov>
This commit is contained in:
parent
cb63f4eca1
commit
e3dcd51f8d
@ -53,7 +53,9 @@ export default {
|
||||
mounted() {
|
||||
this.currentObject = this.object;
|
||||
this.updateView();
|
||||
this.$el.addEventListener('dragover', this.onDragOver);
|
||||
this.$el.addEventListener('dragover', this.onDragOver, {
|
||||
capture: true
|
||||
});
|
||||
this.$el.addEventListener('drop', this.editIfEditable, {
|
||||
capture: true
|
||||
});
|
||||
@ -269,6 +271,7 @@ export default {
|
||||
if (provider &&
|
||||
provider.canEdit &&
|
||||
provider.canEdit(this.currentObject) &&
|
||||
this.isEditingAllowed() &&
|
||||
!this.openmct.editor.isEditing()) {
|
||||
this.openmct.editor.edit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user