Requisito Toscano
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
@@ -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