diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 12d5c8b2..a481e5d1 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -44,6 +44,7 @@ todo: Customer User list form side track but relevant to this todo: Test server down while polling in release mode, does it recover when server starts again or...? +todo: read only version of duration, datetime, date, time, currency todo: all custom controls are fucked (mostly) wont' start with initial value, WTF???????? diff --git a/ayanova/src/components/date-time-control.vue b/ayanova/src/components/date-time-control.vue index 62dd1af0..fe96b459 100644 --- a/ayanova/src/components/date-time-control.vue +++ b/ayanova/src/components/date-time-control.vue @@ -87,7 +87,7 @@ export default { }, readonlyFormat() { return window.$gz.locale.utcDateToShortDateAndTimeLocalized( - this.internalValue, + this.value, this.timeZoneName, this.languageName, this.hour12 @@ -95,34 +95,6 @@ export default { }, updateValue() { let vm = this; - - // let dateValue = vm.$refs.dateField.$refs.input.value; - // let DatePortion = dateValue; - // if (!DatePortion) { - // let v = new Date(); - // let fullYear = v.getFullYear(); - // let fullMonth = v.getMonth() + 1; - // if (fullMonth < 10) { - // fullMonth = "0" + fullMonth.toString(); - // } - // let fullDay = v.getDate(); - // if (fullDay < 10) { - // fullDay = "0" + fullDay.toString(); - // } - // DatePortion = fullYear + "-" + fullMonth + "-" + fullDay; - // } - - // let timeValue = vm.$refs.timeField.$refs.input.value; - // let TimePortion = timeValue; - // if (!TimePortion) { - // TimePortion = "00:00:00"; - // } - - // let ret = window.$gz.locale.localTimeDateStringToUTC8601String( - // DatePortion + "T" + TimePortion, - // this.timeZoneName - // ); - let dateValue = vm.$refs.dateField.$refs.input.value; if (!dateValue) { let v = new Date(); diff --git a/ayanova/src/components/time-control.vue b/ayanova/src/components/time-control.vue index fafd0684..c83334bf 100644 --- a/ayanova/src/components/time-control.vue +++ b/ayanova/src/components/time-control.vue @@ -3,8 +3,8 @@