From c95a78e36618bbf190483b36c50e041212e5cbdc Mon Sep 17 00:00:00 2001 From: Arturo Manzoli Date: Fri, 18 Oct 2024 16:03:23 -0300 Subject: [PATCH] Views: Configuiration-actions: Add minor UI improvements Signed-off-by: Arturo Manzoli --- src/views/ConfigurationActionsView.vue | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) 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 = '' }