mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
pass correct object path, and remove notebook snapshot button from preview
This commit is contained in:
@ -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);
|
||||
|
@ -95,7 +95,8 @@ export const createNewEmbed = (snapshotMeta, snapshot = '') => {
|
||||
id: 'embed-' + date,
|
||||
name,
|
||||
snapshot,
|
||||
type
|
||||
type,
|
||||
objectPath
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user