From 48413f5f0165521424f604e0c7547aa94d4d0911 Mon Sep 17 00:00:00 2001 From: John Obelenus Date: Thu, 22 Jan 2026 13:55:35 -0500 Subject: [PATCH] Add label for actions panel toggle This shows in both the component page, and action page. Toggles without labels are unchanged in their display --- app/web/src/newhotness/ActionWidget.vue | 10 +++- .../src/design-system/general/Toggle.vue | 59 ++++++++++++------- 2 files changed, 45 insertions(+), 24 deletions(-) diff --git a/app/web/src/newhotness/ActionWidget.vue b/app/web/src/newhotness/ActionWidget.vue index c8c7ea6e1a..ec43c85c2a 100644 --- a/app/web/src/newhotness/ActionWidget.vue +++ b/app/web/src/newhotness/ActionWidget.vue @@ -9,13 +9,19 @@ " @click="clickHandler" > -
{{ actionPrototypeView.displayName || actionPrototypeView.name }}
- + + diff --git a/lib/vue-lib/src/design-system/general/Toggle.vue b/lib/vue-lib/src/design-system/general/Toggle.vue index c10d3a21f7..6b0c8f5f78 100644 --- a/lib/vue-lib/src/design-system/general/Toggle.vue +++ b/lib/vue-lib/src/design-system/general/Toggle.vue @@ -1,31 +1,43 @@ @@ -40,5 +52,8 @@ const props = defineProps({ size: { type: String, default: "md" }, selected: { type: Boolean }, click: { type: Function as PropType, default: () => {} }, + onLabel: { type: String, required: false }, + offLabel: { type: String, required: false }, + labelWidth: { type: String, required: false, default: "" }, });