+
mdi-plus
New HTTP action
@@ -110,7 +113,7 @@
-
+
{{
editMode ? 'Edit action' : 'Create new action'
@@ -199,7 +202,7 @@
Cancel
Reset
-
+
{{ editMode ? 'Save' : 'Create' }}
@@ -368,6 +371,8 @@ const headerDialog = ref({
error: '',
})
+const windowOpacity = ref(1)
+
const paramValueOptions = computed(() => {
const options = [{ title: 'Fixed (specify below)', value: 'fixed' }]
const availableInputParameters = getAllCockpitActionVariablesInfo()
@@ -472,6 +477,7 @@ const isValidHeaders = (headers: Record): { isValid: boolean; er
}
const openUrlParamDialog = (): void => {
+ windowOpacity.value = 0
urlParamDialog.value = {
show: true,
key: '',
@@ -482,6 +488,7 @@ const openUrlParamDialog = (): void => {
const closeUrlParamDialog = (): void => {
urlParamDialog.value.show = false
+ windowOpacity.value = 1
}
const addUrlParameter = (): void => {
@@ -492,6 +499,7 @@ const addUrlParameter = (): void => {
}
const openJsonDialog = (): void => {
+ windowOpacity.value = 0
bodyDialog.value = {
show: true,
bodyText: newActionConfig.value.body,
@@ -501,6 +509,7 @@ const openJsonDialog = (): void => {
}
const closeJsonDialog = (): void => {
+ windowOpacity.value = 1
bodyDialog.value.show = false
}
@@ -516,6 +525,7 @@ const removeUrlParam = (key: string): void => {
}
const openHeaderDialog = (): void => {
+ windowOpacity.value = 0
headerDialog.value = {
show: true,
key: '',
@@ -525,6 +535,7 @@ const openHeaderDialog = (): void => {
}
const closeHeaderDialog = (): void => {
+ windowOpacity.value = 1
headerDialog.value.show = false
headerDialog.value.error = ''
}
|