evcc-io/assets/js/components/Config/DeviceModal/SponsorTokenRequired.vue
Michael Geers 914ac75167
Config UI: add user-defined devices (#20966)
Co-authored-by: andig <cpuidle@gmx.de>
Co-authored-by: andig <andi@evcc.io>
2025-05-25 23:08:35 +02:00

21 lines
483 B
Vue

<template>
<div class="alert alert-warning my-4">
{{ $t("config.sponsor.tokenRequired") }}
<a href="#" role="button" class="text-warning" @click.prevent="openModal">
{{ $t("config.sponsor.tokenRequiredLearnMore") }}
</a>
</div>
</template>
<script>
import Modal from "bootstrap/js/dist/modal";
export default {
name: "SponsorTokenRequired",
methods: {
openModal() {
Modal.getOrCreateInstance(document.getElementById("sponsorModal")).show();
},
},
};
</script>