mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-15 22:12:16 +00:00
35 lines
806 B
JavaScript
Executable File
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");
|