Compare commits

...

4 Commits

4 changed files with 11 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "openmct", "name": "openmct",
"version": "1.7.7-SNAPSHOT", "version": "1.7.7",
"description": "The Open MCT core platform", "description": "The Open MCT core platform",
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {

View File

@ -321,7 +321,7 @@ export default {
if (item) { if (item) {
const type = this.openmct.types.get(item.type); const type = this.openmct.types.get(item.type);
if (type && type.definition) { if (type && type.definition) {
creatable = (type.definition.creatable === true); creatable = (type.definition.creatable !== undefined && (type.definition.creatable === 'true' || type.definition.creatable === true));
} }
} }

View File

@ -28,19 +28,19 @@
> >
<div <div
class="c-frame-edit__handle c-frame-edit__handle--nw" class="c-frame-edit__handle c-frame-edit__handle--nw"
@mousedown="startResize([1,1], [-1,-1], $event)" @mousedown.left="startResize([1,1], [-1,-1], $event)"
></div> ></div>
<div <div
class="c-frame-edit__handle c-frame-edit__handle--ne" class="c-frame-edit__handle c-frame-edit__handle--ne"
@mousedown="startResize([0,1], [1,-1], $event)" @mousedown.left="startResize([0,1], [1,-1], $event)"
></div> ></div>
<div <div
class="c-frame-edit__handle c-frame-edit__handle--sw" class="c-frame-edit__handle c-frame-edit__handle--sw"
@mousedown="startResize([1,0], [-1,1], $event)" @mousedown.left="startResize([1,0], [-1,1], $event)"
></div> ></div>
<div <div
class="c-frame-edit__handle c-frame-edit__handle--se" class="c-frame-edit__handle c-frame-edit__handle--se"
@mousedown="startResize([0,0], [1,1], $event)" @mousedown.left="startResize([0,0], [1,1], $event)"
></div> ></div>
</div> </div>
</template> </template>

View File

@ -103,10 +103,13 @@ export function validateNotebookStorageObject() {
let valid = false; let valid = false;
if (notebookStorage) { 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 validKey = key !== undefined && key !== null;
const validValue = value !== undefined && value !== null; const validValue = value !== undefined && value !== null;
valid = validKey && validValue; const hasOldInvalidKeys = oldInvalidKeys.includes(key);
return validKey && validValue && !hasOldInvalidKeys;
}); });
} }