From f56706095a5bcaedd62f0476179aa2d74a280eda Mon Sep 17 00:00:00 2001 From: Nitwel Date: Fri, 28 Apr 2023 15:40:03 +0200 Subject: [PATCH] Fix default values for boolean (#18357) * fix default values for boolean * Add changeset --------- Co-authored-by: Pascal Jufer --- .changeset/tame-students-listen.md | 5 +++++ app/src/displays/boolean/boolean.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/tame-students-listen.md diff --git a/.changeset/tame-students-listen.md b/.changeset/tame-students-listen.md new file mode 100644 index 0000000000..4bea48a2e5 --- /dev/null +++ b/.changeset/tame-students-listen.md @@ -0,0 +1,5 @@ +--- +"@directus/app": patch +--- + +Fixed boolean display to show icons when default values are used diff --git a/app/src/displays/boolean/boolean.vue b/app/src/displays/boolean/boolean.vue index df03db9fc7..f80e137ddd 100644 --- a/app/src/displays/boolean/boolean.vue +++ b/app/src/displays/boolean/boolean.vue @@ -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)', }