5252</template >
5353
5454<script setup lang="ts">
55+ import type ConfigurationDTO from " @/types/configuration/ConfigurationDTO" ;
56+
5557import { ref } from " vue" ;
5658import { useRoute } from " vue-router" ;
5759
60+ import ConfigurationService from " @/api/service/ConfigurationService" ;
5861import SsoUserInfoService from " @/api/service/SsoUserInfoService" ;
5962import VersionInfoService from " @/api/service/VersionInfoService" ;
6063import TheSnackbar from " @/components/common/TheSnackbar.vue" ;
6164import SsoUserInfoResponse from " @/domain/SsoUserInfoResponse" ;
6265import VersionInfoResponse from " @/domain/VersionInfoResponse" ;
66+ import { useConfigurationStore } from " @/store/ConfigurationStore" ;
6367import { useSnackbarStore } from " @/store/SnackbarStore" ;
6468import { useUserStore } from " @/store/UserStore" ;
6569
@@ -74,6 +78,7 @@ const frontendVersion = ref<string>("");
7478const userStore = useUserStore ();
7579const route = useRoute ();
7680const snackbarStore = useSnackbarStore ();
81+ const configurationStore = useConfigurationStore ();
7782
7883created ();
7984
@@ -102,6 +107,11 @@ function created() {
102107 .catch (() => {
103108 backendVersion .value = " error" ;
104109 });
110+ ConfigurationService .getConfiguration ().then (
111+ (configuration : ConfigurationDTO ) => {
112+ configurationStore .setConfiguration (configuration );
113+ }
114+ );
105115}
106116
107117function navigateToHandbuch() {
0 commit comments