diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 54b92859..8db48649 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -58,6 +58,9 @@ move into Options object these things: Errors are probably due to Options object missing some properties or not as expected, here is the code that is bombing that references this.options. object: + +https://github.com/vuetifyjs/vuetify/blob/4a52142fd81f3c50ceb948ce5ba14a3d2ed25e32/packages/vuetify/src/components/VDataTable/VDataTableHeaderDesktop.ts + const sortIndex = this.options.sortBy.findIndex(k => k === header.value);\n const beingSorted = sortIndex >= 0;\n const isDesc = this.options.sortDesc[sortIndex];\n classes.push('sortable');\n\n if (beingSorted) {\n classes.push('active');\n classes.push(isDesc ? 'desc' : 'asc');\n diff --git a/ayanova/src/components/inventorywidgetlist.vue b/ayanova/src/components/inventorywidgetlist.vue index 4ad72f91..6415c2ca 100644 --- a/ayanova/src/components/inventorywidgetlist.vue +++ b/ayanova/src/components/inventorywidgetlist.vue @@ -127,16 +127,23 @@ export default { descending: that.localFormSettings.pagination.descending } } +//NEW VUETIFY 2.x options object +source code is looking for these props +this.options.sortBy +this.options.sortDesc[sortIndex] +this.options.multiSort + + */ //set default values for form settings if they are not present yet if (!formSettings.saved || !formSettings.saved.rowsPerPage) { that.localFormSettings = { - pagination: {} + pagination: {} }; } else { that.localFormSettings.pagination = { rowsPerPage: formSettings.saved.rowsPerPage, - sortBy: formSettings.saved.sortBy,///////<-----sb array?? something funky or incorrect here leading to the error TypeError: this.options.sortBy.findIndex is not a function sb array??? + sortBy: [formSettings.saved.sortBy], descending: formSettings.saved.descending }; if (formSettings.temp && formSettings.temp.page) { diff --git a/ayanova/src/views/inventory.vue b/ayanova/src/views/inventory.vue index 12f8df4a..046c4085 100644 --- a/ayanova/src/views/inventory.vue +++ b/ayanova/src/views/inventory.vue @@ -42,7 +42,7 @@