Skip to content

Commit

Permalink
Hide time labels checkbox when not applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Sep 11, 2023
1 parent 2c7e972 commit fd5afbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -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') }}
Expand Down
Expand Up @@ -186,6 +186,7 @@
<slot
name="dimension-options-options"
:dimension="d"
:isTemporal="isTemporalField(d.field)"
/>
</b-form-group>
</b-col>
Expand Down

0 comments on commit fd5afbb

Please sign in to comment.