mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
40 lines
1002 B
JavaScript
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"); |