Fixes some issues relating to removal of objects (#2366)

* Leave edit mode on navigation after removal

* Only leave edit mode if removing navigated item, or parent of

* Do not emit mutation from filters with out of date object model
This commit is contained in:
Andrew Henry
2019-04-09 10:45:56 -07:00
committed by Deep Tailor
parent b659f205f7
commit 6bf4b3aba8
4 changed files with 20 additions and 9 deletions

View File

@ -85,6 +85,10 @@ export default class RemoveAction {
);
this.openmct.objects.mutate(parent, 'composition', composition);
if (this.inNavigationPath(child) && this.openmct.editor.isEditing()) {
this.openmct.editor.save();
}
}
appliesTo(objectPath) {