mirror of
https://github.com/nasa/openmct.git
synced 2025-04-27 06:19:58 +00:00
Fixed folders
This commit is contained in:
parent
929f06e6c1
commit
8fb6ab61ba
@ -80,7 +80,8 @@ define(
|
|||||||
function dragOver(e) {
|
function dragOver(e) {
|
||||||
//Refresh domain object on each dragOver to catch external
|
//Refresh domain object on each dragOver to catch external
|
||||||
// updates to the model
|
// updates to the model
|
||||||
editableDomainObject = domainObject instanceof EditableDomainObject ? domainObject : new EditableDomainObject(domainObject, $q);
|
//Don't use EditableDomainObject for folders, allow immediate persistence
|
||||||
|
editableDomainObject = domainObject instanceof EditableDomainObject || domainObject.getModel().type==='folder' ? domainObject : new EditableDomainObject(domainObject, $q);
|
||||||
actionCapability = editableDomainObject.getCapability('action');
|
actionCapability = editableDomainObject.getCapability('action');
|
||||||
|
|
||||||
var event = (e || {}).originalEvent || e,
|
var event = (e || {}).originalEvent || e,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user