Files
FHC-Core/public/js/apps/Cis/ProfilUpdateRequests.js
T

33 lines
767 B
JavaScript

import ProfilUpdateView from "../../components/Cis/ProfilUpdate/ProfilUpdateView.js";
import Phrasen from "../../plugin/Phrasen.js";
const app = Vue.createApp({
name: 'ProfilUpdateRequestsApp',
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");