Requisito Toscano

This commit is contained in:
Florinda
2025-01-29 11:08:58 +01:00
parent 36a9811f05
commit b590508ca4
8 changed files with 1146 additions and 77 deletions

View File

@@ -9,6 +9,7 @@ export const LoadingStore = defineStore('loading_store', () => {
const user_loading = ref(false)
const another_loading = ref(false)
const exectuion_loading = ref(false)
const id_exec_loading = ref("")
const re_loading = ref(false)
const isLoading = computed(() => {
@@ -24,12 +25,22 @@ export const LoadingStore = defineStore('loading_store', () => {
return 'none'
})
async function setIdExecLoading(id){
id_exec_loading.value = id
}
const getExecIdLoading = computed(() => {
return id_exec_loading.value
});
return {isLoading,
user_loading,
scenario_loading,
another_loading,
exectuion_loading,
re_loading,
loadingType
loadingType,
setIdExecLoading,
getExecIdLoading
}
})

View File

@@ -11,7 +11,7 @@ export const UserPrefStore = defineStore('userpref_store', () => {
const selectedApp = ref(null)
const loadingStore = LoadingStore()
const selectedFileRE = ref(null)
const selectedScenario = ref(null)
async function fetchUserData(){
@@ -66,6 +66,10 @@ export const UserPrefStore = defineStore('userpref_store', () => {
selectedFileRE.value = file;
}
async function setSelectedScenario(scenario){
selectedScenario.value = scenario;
}
const getSelProj = computed(() => {
return selectedProject.value
})
@@ -77,8 +81,15 @@ export const UserPrefStore = defineStore('userpref_store', () => {
const getSelFile = computed(() => {
return selectedFileRE.value
})
return {getSelFile, user,selectedFileRE,fetchUserData,userLoaded,selectedProject,availableApp,getSelApp,setSelectedApp,selectedApp, updateSelectedProject,getSelProj, setSelectedFile }
const getSelScenario = computed(() => {
return selectedScenario.value
})
const getUser = computed(() => {
return user.value
})
return {getSelFile, user,selectedFileRE,fetchUserData,getUser,userLoaded,selectedProject,availableApp,getSelApp,setSelectedApp,selectedApp, setSelectedScenario, updateSelectedProject,getSelProj, getSelScenario, setSelectedFile }
})