diff --git a/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js b/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js index d35a84b11..410422e66 100644 --- a/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js +++ b/public/js/components/Cis/ProfilUpdate/ProfilUpdateView.js @@ -37,6 +37,7 @@ export default { }, data() { return { + categoryLoaded: false, showModal: false, modalData: null, loading: false, @@ -214,9 +215,7 @@ export default { //responsive:0, }, { - title: Vue.computed(() => { - return this.$p.t("profilUpdate", "Status"); - }), + title: Vue.computed(() => this.$p.t("profilUpdate", "Status")), field: "status_translated", hozAlign: "center", headerFilter: true, @@ -242,9 +241,7 @@ export default { //responsive:0, }, { - title: Vue.computed(() => { - return this.$p.t("profilUpdate", "actions"); - }), + title: Vue.computed(() => this.$p.t("profilUpdate", "actions")), formatter: function () { return ""; }, @@ -262,7 +259,6 @@ export default { }, }; }, - computed: {}, methods: { setLoading: function (newValue) { this.loading = newValue; @@ -309,7 +305,11 @@ export default { } }, }, - + created() { + this.$p.loadCategory("profilUpdate").then(() => { + this.categoryLoaded = true; + }); + }, mounted() { //? opens the AcceptDenyUpdate Modal if a preselected profil_update_id was passed to the component (used for email links) if (this.profil_update_id) { @@ -347,7 +347,7 @@ export default { - + `, };