Requisito Toscano
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
Reference in New Issue
Block a user