Updated CustomToast.vue to composition api & typescript.
This commit is contained in:
parent
723ace4dc2
commit
9cc0514464
@ -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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user