mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
* [Snapshots] Are holding on to outdated domainObjects when clicking on preview #3078 * #3250 : [Preview] Preview window should not have any context menu actions * cleanup: removed redundant code
This commit is contained in:
@ -248,7 +248,8 @@ export default {
|
||||
previewEmbed() {
|
||||
const self = this;
|
||||
const previewAction = new PreviewAction(self.openmct);
|
||||
previewAction.invoke(JSON.parse(self.embed.objectPath));
|
||||
this.openmct.objects.get(self.embed.domainObject.identifier)
|
||||
.then(domainObject => previewAction.invoke([domainObject]));
|
||||
},
|
||||
removeEmbed(success) {
|
||||
if (!success) {
|
||||
|
@ -95,8 +95,7 @@ export const createNewEmbed = (snapshotMeta, snapshot = '') => {
|
||||
id: 'embed-' + date,
|
||||
name,
|
||||
snapshot,
|
||||
type,
|
||||
objectPath: JSON.stringify(objectPath)
|
||||
type
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user