Hide time labels checkbox when not applicable
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
:report.sync="editReport"
|
||||
:modules="modules"
|
||||
>
|
||||
<template #dimension-options-options="{ dimension }">
|
||||
<template #dimension-options-options="{ dimension, isTemporal }">
|
||||
<b-form-checkbox
|
||||
v-if="isTemporal && !['WEEK', 'QUARTER'].includes(dimension.modifier)"
|
||||
v-model="dimension.timeLabels"
|
||||
>
|
||||
{{ $t('edit.dimension.timeLabels') }}
|
||||
|
||||
@@ -186,6 +186,7 @@
|
||||
<slot
|
||||
name="dimension-options-options"
|
||||
:dimension="d"
|
||||
:isTemporal="isTemporalField(d.field)"
|
||||
/>
|
||||
</b-form-group>
|
||||
</b-col>
|
||||
|
||||
Reference in New Issue
Block a user