diff --git a/src/components/CustomWidgetElementInstantiator.vue b/src/components/CustomWidgetElementInstantiator.vue index df2ea8f39..49a4ed9cd 100644 --- a/src/components/CustomWidgetElementInstantiator.vue +++ b/src/components/CustomWidgetElementInstantiator.vue @@ -5,8 +5,9 @@ diff --git a/src/components/EditMenu.vue b/src/components/EditMenu.vue index 5d2373e3d..738fe4f90 100644 --- a/src/components/EditMenu.vue +++ b/src/components/EditMenu.vue @@ -152,7 +152,7 @@

Widget type:

@@ -463,21 +463,17 @@
To be placed on the main view area
-
- (Click on card to add) -
+
(Drag card to add)
To be placed on the top and bottom bars
-
- (Drag card in place to add) -
+
(Drag card to add)
Create Custom Widget + >Add widget base
@@ -630,7 +626,7 @@ >
@@ -734,6 +730,7 @@ const availableCustomWidgetElementsTypes = computed(() => name: widgetType, options: {}, hash: uuid(), + isBoolean: false, managerVars: defaultCustomWidgetManagerVars, cockpitActions: [], })) diff --git a/src/components/ElementConfigPanel.vue b/src/components/ElementConfigPanel.vue index cae27548a..f68489e83 100644 --- a/src/components/ElementConfigPanel.vue +++ b/src/components/ElementConfigPanel.vue @@ -17,20 +17,29 @@ > Delete - + diff --git a/src/components/custom-widget-elements/Switch.vue b/src/components/custom-widget-elements/Switch.vue index f37b01725..c63d053da 100644 --- a/src/components/custom-widget-elements/Switch.vue +++ b/src/components/custom-widget-elements/Switch.vue @@ -10,17 +10,22 @@ -

{{ element.options.label }}

+

{{ element.options.layout?.label }}

diff --git a/src/components/widgets/CustomWidgetBase.vue b/src/components/widgets/CustomWidgetBase.vue index c09b0cf5d..d4761609e 100644 --- a/src/components/widgets/CustomWidgetBase.vue +++ b/src/components/widgets/CustomWidgetBase.vue @@ -2,7 +2,11 @@
-