[Notebook] can not add snapshots to default notebook #3530 (#3531)

This commit is contained in:
Nikhil
2020-11-20 13:40:59 -08:00
committed by GitHub
parent 6fd8f6cd43
commit 13fe7509de

View File

@ -86,7 +86,7 @@ export default {
this.openmct.menus.showMenu(x, y, notebookTypes); this.openmct.menus.showMenu(x, y, notebookTypes);
}, },
snapshot(notebook) { snapshot(notebookType) {
this.$nextTick(() => { this.$nextTick(() => {
const element = document.querySelector('.c-overlay__contents') const element = document.querySelector('.c-overlay__contents')
|| document.getElementsByClassName('l-shell__main-container')[0]; || document.getElementsByClassName('l-shell__main-container')[0];
@ -104,7 +104,7 @@ export default {
openmct: this.openmct openmct: this.openmct
}; };
this.notebookSnapshot.capture(snapshotMeta, notebook.type, element); this.notebookSnapshot.capture(snapshotMeta, notebookType, element);
}); });
}, },
setDefaultNotebookStatus() { setDefaultNotebookStatus() {