Fix default values for boolean (#18357)

* fix default values for boolean

* Add changeset

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
This commit is contained in:
Nitwel
2023-04-28 15:40:03 +02:00
committed by GitHub
parent 02f0284540
commit f56706095a
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"@directus/app": patch
---
Fixed boolean display to show icons when default values are used

View File

@@ -25,8 +25,8 @@ const props = withDefaults(
value: false,
labelOn: null,
labelOff: null,
iconOn: null,
iconOff: null,
iconOn: 'check',
iconOff: 'close',
colorOn: 'var(--primary)',
colorOff: 'var(--foreground-subdued)',
}