diff --git a/src/types/widgets.ts b/src/types/widgets.ts index d51210bc4..b1d9f63e8 100644 --- a/src/types/widgets.ts +++ b/src/types/widgets.ts @@ -395,11 +395,7 @@ export type CustomWidgetElementOptions = { */ lastSelected: SelectorOption /** - * Last selected value - */ - - /** - * + * Layout options */ layout: { /** diff --git a/src/views/ConfigurationActionsView.vue b/src/views/ConfigurationActionsView.vue index 171fea4f7..b005ac893 100644 --- a/src/views/ConfigurationActionsView.vue +++ b/src/views/ConfigurationActionsView.vue @@ -12,7 +12,7 @@

View, manage, and create HTTP request actions.

@@ -55,6 +55,7 @@ @click="openActionEditDialog(item.id)" /> - + {{ editMode ? 'Edit action' : 'Create new action' @@ -198,7 +201,7 @@ Cancel
Reset - + {{ editMode ? 'Save' : 'Create' }}
@@ -366,6 +369,8 @@ const headerDialog = ref({ error: '', }) +const windowOpacity = ref(1) + const paramValueOptions = computed(() => { const options = [{ title: 'Fixed (specify below)', value: 'fixed' }] const availableInputParameters = getAllCockpitActionVariablesInfo() @@ -470,6 +475,7 @@ const isValidHeaders = (headers: Record): { isValid: boolean; er } const openUrlParamDialog = (): void => { + windowOpacity.value = 0 urlParamDialog.value = { show: true, key: '', @@ -480,6 +486,7 @@ const openUrlParamDialog = (): void => { const closeUrlParamDialog = (): void => { urlParamDialog.value.show = false + windowOpacity.value = 1 } const addUrlParameter = (): void => { @@ -490,6 +497,7 @@ const addUrlParameter = (): void => { } const openJsonDialog = (): void => { + windowOpacity.value = 0 bodyDialog.value = { show: true, bodyText: newActionConfig.value.body, @@ -499,6 +507,7 @@ const openJsonDialog = (): void => { } const closeJsonDialog = (): void => { + windowOpacity.value = 1 bodyDialog.value.show = false } @@ -514,6 +523,7 @@ const removeUrlParam = (key: string): void => { } const openHeaderDialog = (): void => { + windowOpacity.value = 0 headerDialog.value = { show: true, key: '', @@ -523,6 +533,7 @@ const openHeaderDialog = (): void => { } const closeHeaderDialog = (): void => { + windowOpacity.value = 1 headerDialog.value.show = false headerDialog.value.error = '' }