Skip to content
Snippets Groups Projects
Commit a32c9861 authored by Tom Robinson's avatar Tom Robinson
Browse files

Validate time_enabled setting is appropriate for the current unit

parent 22c07fcf
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,8 @@ export const DATE_COLUMN_SETTINGS = {
time_enabled: {
title: t`Show the time`,
widget: "buttonGroup",
isValid: ({ unit }: Column, settings: ColumnSettings) =>
!settings["time_enabled"] || hasHour(unit),
getProps: ({ unit }: Column, settings: ColumnSettings) => {
const options = [
{ name: t`Off`, value: null },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment