Only switch into edit mode if view is editable (#2367)

This commit is contained in:
Andrew Henry
2019-04-10 10:13:54 -07:00
committed by Deep Tailor
parent 6bf4b3aba8
commit c577d2e231
2 changed files with 27 additions and 14 deletions

View File

@ -28,11 +28,6 @@ export default class Editor extends EventEmitter {
super();
this.editing = false;
this.openmct = openmct;
document.addEventListener('drop', (event) => {
if (!this.isEditing()) {
this.edit();
}
}, {capture: true});
}
/**