Commit 777bef33 authored by christianrhansen's avatar christianrhansen

passing iso-time on start-td-click

parent 42b5309f
......@@ -31,7 +31,7 @@
promise-span(:value="props.value")
q-td(slot="body-cell-start", slot-scope="props", :props="props")
q-btn(@click="start(props.value)") {{ props.value }}
q-btn(@click="start(props.value)", flat, style="border: 1px solid #333;") {{ returnDatetime(props.value) }}
q-td(slot="body-cell-actions", slot-scope="props", :props="props")
q-btn(v-for="btn in props.value", :key="btn.icon", "flat", size="sm", :icon="btn.icon",
......@@ -43,7 +43,8 @@
import PromiseSpan from './PromiseSpan'
import { mapGetters } from 'vuex'
import { userHasFeature } from 'mbjs-quasar/src/lib'
// import { DateTime } from 'luxon'
import { DateTime } from 'luxon'
export default {
props: ['config', 'path', 'query', 'title', 'basePath', 'hasShow', 'requestTransform'],
components: {
......@@ -70,6 +71,9 @@
}
},
methods: {
returnDatetime (val) {
return DateTime.fromISO(val).toLocaleString(DateTime.DATETIME_SHORT_WITH_SECONDS)
},
start (val) {
this.$emit('start', val)
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment