saving sort and timeframe config (#4701)

This commit is contained in:
Jamie V
2022-01-10 12:24:04 -08:00
committed by GitHub
parent b3ab56cb57
commit 3f575f0ec0

View File

@ -175,7 +175,7 @@ export default {
focusEntryId: null, focusEntryId: null,
search: '', search: '',
searchResults: [], searchResults: [],
showTime: 0, showTime: this.domainObject.configuration.showTime || 0,
showNav: false, showNav: false,
sidebarCoversEntries: false sidebarCoversEntries: false
}; };
@ -239,6 +239,12 @@ export default {
watch: { watch: {
search() { search() {
this.getSearchResults(); this.getSearchResults();
},
defaultSort() {
mutateObject(this.openmct, this.domainObject, 'configuration.defaultSort', this.defaultSort);
},
showTime() {
mutateObject(this.openmct, this.domainObject, 'configuration.showTime', this.showTime);
} }
}, },
beforeMount() { beforeMount() {