mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 03:16:41 +00:00
fix(restrictedNotebook): fix issue causing sections not to update on lock
This commit is contained in:
parent
9a946bcd6f
commit
e0fc2ae043
@ -476,7 +476,6 @@ export default {
|
||||
{
|
||||
label: 'Lock Page',
|
||||
callback: () => {
|
||||
let sections = this.getSections();
|
||||
this.selectedPage.isLocked = true;
|
||||
|
||||
// cant be default if it's locked
|
||||
@ -488,7 +487,7 @@ export default {
|
||||
this.selectedSection.isLocked = true;
|
||||
}
|
||||
|
||||
mutateObject(this.openmct, this.domainObject, 'configuration.sections', sections);
|
||||
mutateObject(this.openmct, this.domainObject, 'configuration.sections', this.sections);
|
||||
|
||||
if (!this.domainObject.locked) {
|
||||
mutateObject(this.openmct, this.domainObject, 'locked', true);
|
||||
@ -708,9 +707,6 @@ export default {
|
||||
getSection(id) {
|
||||
return this.sections.find((s) => s.id === id);
|
||||
},
|
||||
getSections() {
|
||||
return this.domainObject.configuration.sections || [];
|
||||
},
|
||||
getSearchResults() {
|
||||
if (!this.search.length) {
|
||||
return [];
|
||||
|
Loading…
Reference in New Issue
Block a user