+
mdi-plus
New HTTP action
@@ -109,7 +112,7 @@
-
+
{{
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 = ''
}
|