From 6ab68f9de056a20f57fbf57223f1aa7c45795517 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 22 Jul 2021 23:51:01 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 8 +++++--- ayanova/src/api/translation.js | 3 ++- ayanova/src/components/date-control.vue | 6 +++--- ayanova/src/components/date-time-control.vue | 6 +++--- ayanova/src/views/adm-global-select-templates.vue | 2 +- 5 files changed, 14 insertions(+), 11 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 0ed745f6..d181ab1f 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -214,7 +214,7 @@ todo:2 Contract override by TAGS todo:3 form field customization add a "reset" feature to reset to default for when people fuck it up basically just show all fields and remove the required from fields -todo:1** add NOW button to date picker just like time picker that does the same thing + todo:2 Not in love with the "Error api2200" as the only error text in the box sometimes it has things you can't see in the form @@ -269,7 +269,7 @@ todo:3 apierror showing in errorbox on validation error todo:3 generateMenu called on forms redundantly? called for getdata, but also called in created in wrong place i.e. always rather than just when it's not a getdata situation due to already existing - + todo:1** select list templates under global is offering types that don't have select lists like memo etc todo:2 ability to turn off attachments for every form it's on via customize ui @@ -891,4 +891,6 @@ BUILD 116 Added VENDOR mail and delivery addresses, all phone numbers and contact fields Added dropshipcustomer phone numbers, both addresses to viz fields on po -- Fixed bug in Direct Notification where preselecting users in user list or single user form and selecting direct notification resulted in error instead of form open with users preselected \ No newline at end of file +- Fixed bug in Direct Notification where preselecting users in user list or single user form and selecting direct notification resulted in error instead of form open with users preselected + +- Date / Date_Time pickers added "Today" option to set to today's date similarly to Time pickers "Now" option to set time to now \ No newline at end of file diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 94e1eac1..7da3bde0 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -311,7 +311,8 @@ export default { "GeoView", "CopyToClipboard", "AyaType", - "Now" + "Now", + "DateRangeToday" ], //////////////////////////////////////////////////////// diff --git a/ayanova/src/components/date-control.vue b/ayanova/src/components/date-control.vue index 70b16679..77f99ce3 100644 --- a/ayanova/src/components/date-control.vue +++ b/ayanova/src/components/date-control.vue @@ -28,8 +28,8 @@ }} what the fuck - {{ - $ay.t("Now") + {{ + $ay.t("DateRangeToday") }} {{ @@ -95,7 +95,7 @@ export default { } }, methods: { - setNow() { + setToday() { let v = window.$gz.locale .nowUTC8601String(this.timeZoneName) .split("T")[0]; diff --git a/ayanova/src/components/date-time-control.vue b/ayanova/src/components/date-time-control.vue index 761955b5..ded8c80a 100644 --- a/ayanova/src/components/date-time-control.vue +++ b/ayanova/src/components/date-time-control.vue @@ -28,8 +28,8 @@ $ay.t("Delete") }} - {{ - $ay.t("Now") + {{ + $ay.t("DateRangeToday") }} {{ @@ -133,7 +133,7 @@ export default { } }, methods: { - setDateNow() { + setToday() { let v = window.$gz.locale .nowUTC8601String(this.timeZoneName) .split("T")[0]; diff --git a/ayanova/src/views/adm-global-select-templates.vue b/ayanova/src/views/adm-global-select-templates.vue index cce93b20..b6991b11 100644 --- a/ayanova/src/views/adm-global-select-templates.vue +++ b/ayanova/src/views/adm-global-select-templates.vue @@ -453,7 +453,7 @@ async function fetchTranslatedText(vm) { // // async function populateSelectionLists(vm) { - let res = await window.$gz.api.get(API_BASE_URL + "List"); + let res = await window.$gz.api.get(API_BASE_URL + "list"); if (res.error) { vm.formState.serverError = res.error; window.$gz.form.setErrorBoxErrors(vm);