diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index bf7b330b..5c25700c 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -220,30 +220,17 @@ todo: many biz objects are not using new PUT methodology CURRENTLY DOING: BIG PICTURE STUFF - - test full graph partial updating system - - confirm Create, Retrieve, Update, Delete works completely - - try to start with a new workorder if possible - - make minimal front end enough for POC wokorder-> - woitem -> - woitemscheduleduser collection - wostate - - test out, confirm can CRUD as planned independantly and all at once - - will need some dirty fields and viz fields likely added to models so go minimal route as possible to POC it - - NEED editable field at every level to test out the updating and partial updating process - + - ability to create from nothing implement whatever is minimally necessary to get it to work and do full crud test at all layers + - test out, confirm can CRUD as planned independantly and all at once - once pass this step then second pass at new features that affect models (not necessarily UI stuff just fields required etc) shouldn't be too much as already did that when recently fleshed out models but no doubt missed much - then full in front end and flow out to back end as required, remove any backend that was a defunct evolutionary path so no cruft left around - Keep working on front and back responds to front needs as I go - load and stress test on client - - Skip links when it gets big: - https://www.voorhoede.nl/en/blog/why-skip-links-are-important-for-accessibility/ CURRENT ACTIONABLE TODOS - todo: on init: - //If there is a single woitem then select it otherwise keep it clean and empty by not selecting thus not showing - //edit form as per design + todo: can I turn control labels into hyperlinks for getting to feeder records? If not then need to find a way to accomplish it e.g. can workorder status title be changed to a hyper link to status list @@ -320,6 +307,9 @@ todo: Viz fields - calculate totals etc todo: Should workorderitemloan be included in contract discounting system?? i.e. should *anything* that can be charged for on a workorder and which you don't directly enter a price (like outside service) be part of contracting system?? +todo: - Skip links when it gets big ??: + https://www.voorhoede.nl/en/blog/why-skip-links-are-important-for-accessibility/ + ------------------------------------------ diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 5f0fbe1d..54907c80 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -170,7 +170,7 @@ export default { }, setDefaultView: function() { //if only one record left then display it otherwise just let the datatable show what the user can click on - if (this.value.items.length == 1) { + if (this.value && this.value.items && this.value.items.length == 1) { this.selectedRow = [{ index: 0 }]; this.activeItemIndex = 0; } else { @@ -307,7 +307,7 @@ and it's probably not a big list to fill anyway return this.pvm.formCustomTemplateKey; }, showTable: function() { - return this.value.items.length > 1; + return this.value && this.value.items && this.value.items.length > 1; }, canAdd: function() { return (