Files
FHC-Core/public/js/apps/Cis/ProfilUpdateRequests.js
T
2024-04-11 11:20:32 +02:00

35 lines
806 B
JavaScript
Executable File

import fhcapifactory from "../api/fhcapifactory.js";
import ProfilUpdateView from "../../components/Cis/ProfilUpdate/ProfilUpdateView.js";
import Phrasen from "../../plugin/Phrasen.js";
Vue.$fhcapi = fhcapifactory;
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() {
Vue.$fhcapi.ProfilUpdate.getStatus()
.then((response) => {
this.profilUpdateStates = response.data;
})
.catch((error) => {
console.error(error);
});
},
});
app.use(Phrasen).mount("#content");