Commit bd96cc08 authored by christianrhansen's avatar christianrhansen

fixed highlighting

parent bfa673d6
Pipeline #50745 passed with stage
in 5 minutes and 46 seconds
......@@ -18,23 +18,21 @@
:pagination.sync="pagination",
:filter="filter",
:title="tableTitle")
div.q-pa-md.full-width(slot="item", slot-scope="props")
q-card.bg-grey-9
q-card-main.q-py-none.text-grey-7.row
| {{ props.row }} x
// .col-12(v-for="prop in Object.getOwnPropertyNames(props.row)") {{ getTitle(props, prop) }}
.col-12(v-for="prop in props.cols",
:class="{'text-white': prop.name === pagination.sortBy}")
// | {{ prop.label }}
| {{ getTitle(props, prop) }} xxx
//
.col(:class="{'text-white': pagination.sortBy === props.row.date}") {{ props.row.date }}
.col {{ props.row.last_updated }}`
.col {{ props.row.creator }}
div.q-py-md.full-width(slot="item", slot-scope="props")
q-card.bg-grey-9.q-px-none
q-card-main.q-py-none.q-px-none.text-grey-7.row
.col
template(v-for="prop in props.cols")
.col(
v-if="prop.name !== 'title' && prop.name !== 'actions'",
:class="{'text-white': prop.name === pagination.sortBy}")
//
| {{ prop.label }}:
br
| {{ getTitle(props, prop) }}
q-card-separator
| x {{ pagination.sortBy }}
q-card-separator
q-card-title.q-py-sm
......@@ -137,8 +135,7 @@
},
methods: {
getTitle (_props, _prop) {
console.log(_prop.row)
return _prop.row
return _props.row[_prop.name]
},
returnDatetime (val) {
return DateTime.fromMillis(val).toLocaleString(DateTime.DATETIME_SHORT_WITH_SECONDS)
......@@ -277,7 +274,7 @@
tr
height auto
th
display inline-block!important
// display inline-block!important
border-radius 100vw
padding-left 16px
padding-right 16px
......
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