FreeTube/src/renderer/components/ft-toast/ft-toast.vue

19 lines
408 B
Vue
Raw Normal View History

2020-06-14 23:13:35 +02:00
<template>
2020-06-27 12:41:34 +02:00
<div class="toast-holder">
<div
v-for="(toast, index) in toasts"
:key="'toast-' + index"
class="toast"
:class="{ closed: !toast.isOpen, open: toast.isOpen }"
@click="performAction(index)"
2020-06-27 12:41:34 +02:00
>
2020-06-27 17:27:03 +02:00
<p class="message">
{{ toast.message }}
</p>
2020-06-27 12:41:34 +02:00
</div>
</div>
2020-06-14 23:13:35 +02:00
</template>
<script src="./ft-toast.js" />
2020-06-27 17:27:03 +02:00
<style scoped src="./ft-toast.css" />