Updated CustomToast.vue to composition api & typescript.

This commit is contained in:
Joep 2023-10-07 14:01:57 +02:00
parent 723ace4dc2
commit 9cc0514464
No known key found for this signature in database
GPG Key ID: 6F5588F1DC2A8209

View File

@ -7,17 +7,15 @@
</div>
</template>
<script>
export default {
name: "error-toast",
props: ["message", "reportText", "isReport"],
methods: {
clicked() {
window.open(
"https://github.com/filebrowser/filebrowser/issues/new/choose"
);
},
},
<script setup lang="ts">
defineProps<{
message: string;
reportText: string;
isReport: boolean;
}>();
const clicked = () => {
window.open("https://github.com/filebrowser/filebrowser/issues/new/choose");
};
</script>