mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 03:55:15 +00:00
19 lines
453 B
Vue
19 lines
453 B
Vue
<template>
|
|
<div class="bot-alerts">
|
|
<b-alert
|
|
v-for="(alert, index) in alertStore.activeMessages"
|
|
:key="index"
|
|
v-model="alert.timeout"
|
|
:variant="alert.severity ?? 'warning'"
|
|
dismissible
|
|
@closed="alertStore.removeAlert(alert)"
|
|
>{{ alert.message }}</b-alert
|
|
>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useAlertsStore } from '@/stores/alerts';
|
|
const alertStore = useAlertsStore();
|
|
</script>
|