evcc-io/assets/js/views/Main.vue
andig bb61acc99c
Start UI early (#23767)
Co-authored-by: Michael Geers <michael@geers.tv>
2025-11-14 09:19:08 +00:00

34 lines
718 B
Vue

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