Commit 1794bf16 authored by christianrhansen's avatar christianrhansen
Browse files

red cell-info when cell has no content

parent 019d8291
Pipeline #16570 passed with stage
in 6 minutes and 36 seconds
<template lang="pug">
.text-dark
div(:class="setClass()")
strong {{ shortenType(type) }}
p.faded
span.q-pr-md(v-if="cell.styleClass") Class: .{{ cell.styleClass }}
......@@ -14,6 +14,9 @@
type: String
},
methods: {
setClass () {
return this.cell.data.content.length > 0 ? 'text-dark' : 'text-red'
},
shortenType (type) {
return type.substr(0, type.length - 5)
}
......
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