30 lines
593 B
Vue
30 lines
593 B
Vue
<template lang="html">
|
|
<div
|
|
v-if="insufficient"
|
|
class="layout align-center justify-start error--text"
|
|
>
|
|
<div
|
|
class="mr-2 text-no-wrap text-truncate"
|
|
style="min-width: 24px; text-align: center;"
|
|
>
|
|
{{ model.conditionNote || (model.condition && model.condition.calculation) || 'No condition specified' }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="js">
|
|
export default {
|
|
props: {
|
|
model: {
|
|
type: Object,
|
|
default: () => ({}),
|
|
},
|
|
},
|
|
computed: {
|
|
insufficient(){
|
|
return !this.model.condition?.value;
|
|
},
|
|
},
|
|
}
|
|
</script>
|