From 9cb85ad176d6def19af7021ce8884f4806658ab6 Mon Sep 17 00:00:00 2001 From: Shefali Joshi Date: Fri, 27 Aug 2021 04:44:23 -0700 Subject: [PATCH] 1.7.7 merge into master (#4155) * Merge 1.7.7 sprint branch into master Co-authored-by: Nikhil Co-authored-by: Khalid Adil --- package.json | 2 +- src/plugins/condition/components/inspector/StylesView.vue | 2 +- src/plugins/displayLayout/components/EditMarquee.vue | 8 ++++---- src/plugins/notebook/utils/notebook-storage.js | 7 +++++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 4cebc1070d..fc23a2ff3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openmct", - "version": "1.7.7-SNAPSHOT", + "version": "1.7.7", "description": "The Open MCT core platform", "dependencies": {}, "devDependencies": { diff --git a/src/plugins/condition/components/inspector/StylesView.vue b/src/plugins/condition/components/inspector/StylesView.vue index 53788ddd09..f623301e73 100644 --- a/src/plugins/condition/components/inspector/StylesView.vue +++ b/src/plugins/condition/components/inspector/StylesView.vue @@ -321,7 +321,7 @@ export default { if (item) { const type = this.openmct.types.get(item.type); if (type && type.definition) { - creatable = (type.definition.creatable === true); + creatable = (type.definition.creatable !== undefined && (type.definition.creatable === 'true' || type.definition.creatable === true)); } } diff --git a/src/plugins/displayLayout/components/EditMarquee.vue b/src/plugins/displayLayout/components/EditMarquee.vue index 301c148cfc..d20a10ff40 100644 --- a/src/plugins/displayLayout/components/EditMarquee.vue +++ b/src/plugins/displayLayout/components/EditMarquee.vue @@ -28,19 +28,19 @@ >
diff --git a/src/plugins/notebook/utils/notebook-storage.js b/src/plugins/notebook/utils/notebook-storage.js index 7952fd7327..2fd4f7369b 100644 --- a/src/plugins/notebook/utils/notebook-storage.js +++ b/src/plugins/notebook/utils/notebook-storage.js @@ -103,10 +103,13 @@ export function validateNotebookStorageObject() { let valid = false; if (notebookStorage) { - Object.entries(notebookStorage).forEach(([key, value]) => { + const oldInvalidKeys = ['notebookMeta', 'page', 'section']; + valid = Object.entries(notebookStorage).every(([key, value]) => { const validKey = key !== undefined && key !== null; const validValue = value !== undefined && value !== null; - valid = validKey && validValue; + const hasOldInvalidKeys = oldInvalidKeys.includes(key); + + return validKey && validValue && !hasOldInvalidKeys; }); }