Skip to content
Permalink
Browse files

fix(table-date): correctly render date questions in table rows

  • Loading branch information...
czosel authored and anehx committed Jun 11, 2019
1 parent 2b40b9c commit b07aa8292e16b508fd83ece042021019307b0fd5
Showing with 7 additions and 1 deletion.
  1. +6 −0 addon/components/cf-field-value.js
  2. +1 −1 addon/templates/components/cf-field/input/date.hbs
@@ -1,3 +1,4 @@
import moment from "moment";
import Component from "@ember/component";
import layout from "../templates/components/cf-field-value";
import { computed } from "@ember/object";
@@ -48,6 +49,11 @@ export default Component.extend({
label: answerValue && answerValue.name
};
}
case "DateQuestion": {
return {
label: moment(field.answer.value).format("L")
};
}

default:
return {
@@ -1,7 +1,7 @@
{{pikaday-wrapper
class="uk-input"
name=field.id
format="DD.MM.YYYY"
format="L"
onSelection=(action "onchange")
value=(get field.answer field.answer._valueKey)
disabled=disabled

0 comments on commit b07aa82

Please sign in to comment.
You can’t perform that action at this time.