mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-28 19:23:47 +02:00
VRC status checking
This commit is contained in:
20
src/components/VrcStatus.vue
Normal file
20
src/components/VrcStatus.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<el-alert
|
||||
v-if="lastStatus"
|
||||
:title="lastStatus"
|
||||
type="warning"
|
||||
show-icon
|
||||
center
|
||||
:closable="true"
|
||||
@close="onAlertClose"></el-alert>
|
||||
</template>
|
||||
<script setup>
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useVrcStatusStore } from '../stores';
|
||||
|
||||
const { lastStatus, isAlertClosed } = storeToRefs(useVrcStatusStore());
|
||||
|
||||
function onAlertClose() {
|
||||
isAlertClosed.value = true;
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user