pass correct object path, and remove notebook snapshot button from preview

This commit is contained in:
Deep Tailor
2020-03-31 20:59:20 -07:00
parent ee4a81bdfd
commit 64c5725687
3 changed files with 11 additions and 28 deletions

View File

@ -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(self.embed.objectPath);
}
});
});
},
removeEmbed(id) {
this.$emit('removeEmbed', id);

View File

@ -95,7 +95,8 @@ export const createNewEmbed = (snapshotMeta, snapshot = '') => {
id: 'embed-' + date,
name,
snapshot,
type
type,
objectPath
};
}