Remove appconfig in favor of runtimeconfig

This commit is contained in:
Julien Nahum
2024-01-03 17:38:11 +01:00
parent a51ccfebec
commit a6d88278be
18 changed files with 103 additions and 90 deletions

View File

@@ -91,14 +91,14 @@
</template>
<script>
export default {
props: {
show: { type: Boolean, required: true }
},
setup () {
return {
useAlert: useAlert()
useAlert: useAlert(),
runtimeConfig: useRuntimeConfig()
}
},
data: () => ({
@@ -111,7 +111,7 @@ export default {
computed: {
aiFeaturesEnabled () {
return useAppConfig().ai_features_enabled
return this.runtimeConfig.public.aiFeaturesEnabled
}
},