Files
FHC-Core/public/js/apps/Cis/ProfilUpdateRequests.js
T
2024-10-17 15:34:00 +02:00

33 lines
733 B
JavaScript

import ProfilUpdateView from "../../components/Cis/ProfilUpdate/ProfilUpdateView.js";
import Phrasen from "../../plugin/Phrasen.js";
const app = Vue.createApp({
components: {
["profil-update-view"]: ProfilUpdateView,
},
data() {
return {
profilUpdateStates: null,
};
},
provide() {
return {
profilUpdateStates: Vue.computed(() =>
this.profilUpdateStates ? this.profilUpdateStates : false
),
};
},
methods: {},
created() {
this.$fhcApi.factory.profilUpdate.getStatus()
.then((response) => {
this.profilUpdateStates = response.data;
})
.catch((error) => {
console.error(error);
});
},
});
app.use(Phrasen).mount("#content");