From cf0c7a2f8c606645efc483f3821f3c58370d386b Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Mon, 8 Apr 2024 12:25:25 +0200 Subject: [PATCH] put le_ids aswell as viewdata for le selection in globalProperties to share between components; using FhcApi Plugin for API calls; le selection in setup now with info (gruppe_kurzbz, lehrform_kurzbz, semester, verband, gruppe); fixed setting foto in viewData after refreshing sum eg after kontrolle; --- public/js/plugin/FhcApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/plugin/FhcApi.js b/public/js/plugin/FhcApi.js index bacd27d43..4e42ee48b 100644 --- a/public/js/plugin/FhcApi.js +++ b/public/js/plugin/FhcApi.js @@ -258,6 +258,7 @@ export default { constructor(factorypart, root) { if (root === undefined) this.$fhcApi = app.config.globalProperties.$fhcApi; + else Object.defineProperty(this, '$fhcApi', { get() { @@ -277,6 +278,5 @@ export default { } app.config.globalProperties.$fhcApi.factory = new FhcApiFactoryWrapper(FhcApiFactory); - } }; \ No newline at end of file