adds more filter options for the ProfilUpdateView

This commit is contained in:
SimonGschnell
2024-04-11 11:20:32 +02:00
parent 4fc4cd762d
commit 2b68831415
5 changed files with 62 additions and 62 deletions
+6 -2
View File
@@ -59,8 +59,12 @@ const profilApp = Vue.createApp({
//? use function syntax for provide so that we can access `this`
provide() {
return {
profilUpdateStates: Vue.computed(() => this.profilUpdateStates),
profilUpdateTopic: Vue.computed(() => this.profilUpdateTopic),
profilUpdateStates: Vue.computed(() =>
this.profilUpdateStates ? this.profilUpdateStates : null
),
profilUpdateTopic: Vue.computed(() =>
this.profilUpdateTopic ? this.profilUpdateTopic : null
),
setLoading: (newValue) => {
this.loading = newValue;
},
+22 -12
View File
@@ -3,22 +3,32 @@ import ProfilUpdateView from "../../components/Cis/ProfilUpdate/ProfilUpdateView
import Phrasen from "../../plugin/Phrasen.js";
Vue.$fhcapi = fhcapifactory;
const app = Vue.createApp({
components: {
['profil-update-view']:ProfilUpdateView,
["profil-update-view"]: ProfilUpdateView,
},
data() {
return {
}
},methods:{
}
profilUpdateStates: null,
};
},
provide() {
return {
profilUpdateStates: Vue.computed(() =>
this.profilUpdateStates ? this.profilUpdateStates : false
),
};
},
methods: {},
created() {
Vue.$fhcapi.ProfilUpdate.getStatus()
.then((response) => {
this.profilUpdateStates = response.data;
})
.catch((error) => {
console.error(error);
});
},
});
app.use(Phrasen).mount("#content");