diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index a24b00af..ab1a91c5 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -6,19 +6,17 @@ MISC ITEMS THAT CAME UP -todo: data list view date filter - can't select EMPTY as one of the range choices, but it should be there, in fact should be there for any field - "No Value", "HasValue" -todo: datalists set default sort order as most appropriate in default list views - already done for review and report todo: time picker no way to select NOW todo: time picker defaults to 12:00am when date is selected, how about current time instead? todo: date picker component add drop down quick pick: i.e. Hour from now, Day from now, Week from now, Month from now. -todo: date and time defaults for appointments and shit - mainly what to do with stop date for example in reminder, can set start, how to set stop? + todo: datetime picker read only mode is grayed out, should not be? probably still setting both readonly and disabled like old times + + + + todo: Server returned broken rules not showing in form beside the field in Question test on widget form to confirm todo: incorrect creds on login get "res is not defined" instead of proper error diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 5856dbb1..aecb4ad0 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -188,6 +188,25 @@ export default { .toString(); }, /////////////////////////////////////////////// + // Get default start date time in api format + // (this is used to centralize and for future) + defaultStartDateTime(ofType) { + //ofType in future could be for + //different areas having different custom start / top times + //so will set that in all callers for future purposes, but + //for now, here going to ignore it and just default to now + //and now plus one hour + return { + start: window.$gz.DateTime.local() + .toUTC() + .toString(), + end: window.$gz.DateTime.local() + .plus({ hours: 1 }) + .toUTC() + .toString() + }; + }, + /////////////////////////////////////////////// // Convert a utc date to local time zone // and return date only portion only in iso 8601 // format (used by time and date picker components) diff --git a/ayanova/src/components/date-time-control.vue b/ayanova/src/components/date-time-control.vue index 74fae63c..9e6b3dcb 100644 --- a/ayanova/src/components/date-time-control.vue +++ b/ayanova/src/components/date-time-control.vue @@ -33,7 +33,7 @@ - +