mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 03:55:15 +00:00
31 lines
601 B
Vue
31 lines
601 B
Vue
<template>
|
|
<div class="bot-alerts">
|
|
<b-alert
|
|
v-for="(alert, index) in alertStore.activeMessages"
|
|
:key="index"
|
|
variant="warning"
|
|
dismissible
|
|
:show="5"
|
|
:value="!!alert.message"
|
|
@dismissed="alertStore.removeAlert"
|
|
>
|
|
{{ alert.message }}
|
|
</b-alert>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { useAlertsStore } from '@/stores/alerts';
|
|
|
|
export default defineComponent({
|
|
name: 'BotAlerts',
|
|
setup() {
|
|
const alertStore = useAlertsStore();
|
|
return {
|
|
alertStore,
|
|
};
|
|
},
|
|
});
|
|
</script>
|