Action to trigger
@@ -332,6 +384,7 @@ import { useSnackbar } from '@/composables/snackbar'
import {
createDataLakeVariable,
deleteDataLakeVariable,
+ getAllDataLakeVariablesInfo,
getDataLakeVariableInfo,
updateDataLakeVariableInfo,
} from '@/libs/actions/data-lake'
@@ -357,6 +410,7 @@ const futureDataLakeVariable = ref
(defaultDataLakeVariable)
const openNewDataLakeVariableForm = ref(false)
const isOptionsMenuOpen = ref<{ [key: number]: boolean }>({})
const dataLakeVariableError = ref([])
+const openDataLakeVariableSelector = ref(false)
watch(
() => widgetStore.elementToShowOnDrawer,
@@ -375,6 +429,17 @@ watch(
}
)
+const handleResetVariable = (): void => {
+ currentElement.value!.options.dataLakeVariable = undefined
+ futureDataLakeVariable.value = defaultDataLakeVariable
+ openNewDataLakeVariableForm.value = false
+ openDataLakeVariableSelector.value = false
+}
+
+const availableDataLakeVariables = computed(() => {
+ return getAllDataLakeVariablesInfo()
+})
+
const CloseConfigPanel = (): void => {
widgetStore.elementToShowOnDrawer = undefined
widgetStore.miniWidgetManagerVars(currentElement.value!.hash).configMenuOpen = false