mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +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:
parent
e667b22b3c
commit
573a63d359
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
||||
<span class="l-browse-bar__object-name c-object-label__name">
|
||||
{{ domainObject.name }}
|
||||
</span>
|
||||
<context-menu-drop-down :object-path="objectPath" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="l-browse-bar__end">
|
||||
@ -21,12 +20,6 @@
|
||||
:current-view="currentView"
|
||||
@setView="setView"
|
||||
/>
|
||||
<NotebookMenuSwitcher v-if="showNotebookMenuSwitcher"
|
||||
:domain-object="domainObject"
|
||||
:ignore-link="true"
|
||||
:object-path="objectPath"
|
||||
class="c-notebook-snapshot-menubutton"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -34,18 +27,13 @@
|
||||
|
||||
|
||||
<script>
|
||||
import ContextMenuDropDown from '../../ui/components/contextMenuDropDown.vue';
|
||||
import NotebookMenuSwitcher from '@/plugins/notebook/components/notebook-menu-switcher.vue';
|
||||
import ViewSwitcher from '../../ui/layout/ViewSwitcher.vue';
|
||||
|
||||
export default {
|
||||
inject: [
|
||||
'openmct',
|
||||
'objectPath'
|
||||
'openmct'
|
||||
],
|
||||
components: {
|
||||
ContextMenuDropDown,
|
||||
NotebookMenuSwitcher,
|
||||
ViewSwitcher
|
||||
},
|
||||
props: {
|
||||
@ -67,12 +55,6 @@ export default {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
showNotebookMenuSwitcher: {
|
||||
type: Boolean,
|
||||
default: () => {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
views: {
|
||||
type: Array,
|
||||
default: () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user