evcc-io/assets/js/views/Main.vue
StefanSchoof 0f4c16aac9
UI: don't show setup-screen on slow connections (#21306)
Co-authored-by: Michael Geers <michael@geers.tv>
2025-05-20 10:28:45 +02:00

33 lines
582 B
Vue

<template>
<Site
v-if="state.startup"
:notifications="notifications"
v-bind="state"
:selected-loadpoint-index="selectedLoadpointIndex"
/>
</template>
<script>
import Site from "../components/Site/Site.vue";
import store from "../store";
export default {
name: "Main",
components: { Site },
props: {
notifications: Array,
selectedLoadpointIndex: Number,
},
data() {
return store;
},
head() {
const title = store.state.siteTitle;
if (title) {
return { title };
}
// no custom title
return { title: "evcc", titleTemplate: null };
},
};
</script>