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

@@ -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 }
})