This commit is contained in:
2021-07-22 23:51:01 +00:00
parent 771f2d8483
commit 6ab68f9de0
5 changed files with 14 additions and 11 deletions

View File

@@ -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 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 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 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 sometimes it has things you can't see in the form
@@ -892,3 +892,5 @@ BUILD 116
Added dropshipcustomer phone numbers, both addresses to viz fields on po 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 - 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

View File

@@ -311,7 +311,8 @@ export default {
"GeoView", "GeoView",
"CopyToClipboard", "CopyToClipboard",
"AyaType", "AyaType",
"Now" "Now",
"DateRangeToday"
], ],
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////

View File

@@ -28,8 +28,8 @@
}}</v-btn> }}</v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
what the fuck what the fuck
<v-btn text color="primary" @click="setNow()">{{ <v-btn text color="primary" @click="setToday()">{{
$ay.t("Now") $ay.t("DateRangeToday")
}}</v-btn> }}</v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn text color="primary" @click="dlgdate = false">{{ <v-btn text color="primary" @click="dlgdate = false">{{
@@ -95,7 +95,7 @@ export default {
} }
}, },
methods: { methods: {
setNow() { setToday() {
let v = window.$gz.locale let v = window.$gz.locale
.nowUTC8601String(this.timeZoneName) .nowUTC8601String(this.timeZoneName)
.split("T")[0]; .split("T")[0];

View File

@@ -28,8 +28,8 @@
$ay.t("Delete") $ay.t("Delete")
}}</v-btn> }}</v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn text color="primary" @click="setDateNow()">{{ <v-btn text color="primary" @click="setToday()">{{
$ay.t("Now") $ay.t("DateRangeToday")
}}</v-btn> }}</v-btn>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn text color="primary" @click="dlgdate = false">{{ <v-btn text color="primary" @click="dlgdate = false">{{
@@ -133,7 +133,7 @@ export default {
} }
}, },
methods: { methods: {
setDateNow() { setToday() {
let v = window.$gz.locale let v = window.$gz.locale
.nowUTC8601String(this.timeZoneName) .nowUTC8601String(this.timeZoneName)
.split("T")[0]; .split("T")[0];

View File

@@ -453,7 +453,7 @@ async function fetchTranslatedText(vm) {
// //
// //
async function populateSelectionLists(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) { if (res.error) {
vm.formState.serverError = res.error; vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm); window.$gz.form.setErrorBoxErrors(vm);