RE Single class scenarios picklist

This commit is contained in:
Florinda
2024-12-17 11:25:08 +01:00
parent 064abb6d04
commit 204f3aa994
5 changed files with 129 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ export const UserPrefStore = defineStore('userpref_store', () => {
const userLoaded = ref(false)
const selectedApp = ref(null)
const loadingStore = LoadingStore()
const selectedFileRE = ref(null)
async function fetchUserData(){
@@ -61,6 +62,10 @@ export const UserPrefStore = defineStore('userpref_store', () => {
}
});
async function setSelectedFile(file){
selectedFileRE.value = file;
}
const getSelProj = computed(() => {
return selectedProject.value
})
@@ -68,8 +73,12 @@ export const UserPrefStore = defineStore('userpref_store', () => {
const getSelApp = computed(() => {
return selectedApp.value
})
const getSelFile = computed(() => {
return selectedFileRE.value
})
return { user,fetchUserData,userLoaded,selectedProject,availableApp,getSelApp,setSelectedApp,selectedApp, updateSelectedProject,getSelProj }
return {getSelFile, user,selectedFileRE,fetchUserData,userLoaded,selectedProject,availableApp,getSelApp,setSelectedApp,selectedApp, updateSelectedProject,getSelProj, setSelectedFile }
})