Files
FHC-Core/public/js/apps/Cis/ProfilUpdateRequests.js
T
2025-10-09 09:15:26 +02:00

40 lines
1002 B
JavaScript

import ProfilUpdateView from "../../components/Cis/ProfilUpdate/ProfilUpdateView.js";
import PluginsPhrasen from "../../plugins/Phrasen.js";
import ApiProfilUpdate from '../../api/factory/profilUpdate.js';
// TODO: sobald in verwendung den vue router pfad zu ProfilUpdateView definieren und diese app in component auslagern
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.$api
.call(ApiProfilUpdate.getStatus())
.then((response) => {
this.profilUpdateStates = response.data;
})
.catch((error) => {
console.error(error);
});
},
});
FhcApps.makeExtendable(app);
app.use(PluginsPhrasen).mount("#content");