diff --git a/src/plugins/notebook/components/notebook-embed.vue b/src/plugins/notebook/components/notebook-embed.vue index 4c02ca9fc3..d720aa5ed6 100644 --- a/src/plugins/notebook/components/notebook-embed.vue +++ b/src/plugins/notebook/components/notebook-embed.vue @@ -217,18 +217,16 @@ export default { populateActionMenu() { const self = this; const actions = [new PreviewAction(self.openmct)]; - self.openmct.objects.get(self.embed.type) - .then((domainObject) => { - actions.forEach((action) => { - self.actions.push({ - cssClass: action.cssClass, - name: action.name, - perform: () => { - action.invoke([domainObject].concat(self.openmct.router.path)); - } - }); - }); + + actions.forEach((action) => { + self.actions.push({ + cssClass: action.cssClass, + name: action.name, + perform: () => { + action.invoke(JSON.parse(self.embed.objectPath)); + } }); + }); }, removeEmbed(id) { this.$emit('removeEmbed', id); diff --git a/src/plugins/notebook/utils/notebook-entries.js b/src/plugins/notebook/utils/notebook-entries.js index ed8ca7f906..6b026e33ea 100644 --- a/src/plugins/notebook/utils/notebook-entries.js +++ b/src/plugins/notebook/utils/notebook-entries.js @@ -95,7 +95,8 @@ export const createNewEmbed = (snapshotMeta, snapshot = '') => { id: 'embed-' + date, name, snapshot, - type + type, + objectPath: JSON.stringify(objectPath) }; } diff --git a/src/ui/preview/Preview.vue b/src/ui/preview/Preview.vue index 9ad0dab327..03af33675b 100644 --- a/src/ui/preview/Preview.vue +++ b/src/ui/preview/Preview.vue @@ -40,12 +40,6 @@ :current-view="currentView" @setView="setView" /> - @@ -57,7 +51,6 @@