🚑 Fix for vutify beta 5 (#31)
This commit is contained in:
parent
4a1e33a162
commit
855a48b322
@ -3,8 +3,8 @@
|
|||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>{{ props.descriptor.name }}</v-card-title>
|
<v-card-title>{{ props.descriptor.name }}</v-card-title>
|
||||||
<v-card-content class="pt-1">
|
<v-card-content class="pt-1">
|
||||||
<v-container class="py-0">
|
<v-container class="pt-0">
|
||||||
<v-row v-if="props.descriptor.mainField" class="mb-4">
|
<v-row v-if="props.descriptor.mainField">
|
||||||
<v-col>
|
<v-col>
|
||||||
<bool-field-component
|
<bool-field-component
|
||||||
v-if="props.descriptor.mainField.type == 'BOOL'"
|
v-if="props.descriptor.mainField.type == 'BOOL'"
|
||||||
@ -41,7 +41,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { SettingDescrition } from "@/data/Setting/SettingDescription";
|
import type { SettingDescrition } from "@/data/Setting/SettingDescription";
|
||||||
import { useSettingStore } from "@/stores/setting";
|
import { useSettingStore } from "@/stores/setting";
|
||||||
import { computed } from "@vue/reactivity";
|
import { computed } from "vue";
|
||||||
import { storeToRefs } from "pinia";
|
import { storeToRefs } from "pinia";
|
||||||
import boolFieldComponent from "./fields/BoolFieldComponent.vue";
|
import boolFieldComponent from "./fields/BoolFieldComponent.vue";
|
||||||
import SelectFieldComponent from "./fields/SelectFieldComponent.vue";
|
import SelectFieldComponent from "./fields/SelectFieldComponent.vue";
|
||||||
|
@ -3,8 +3,11 @@
|
|||||||
<template v-slot:prepend>
|
<template v-slot:prepend>
|
||||||
<v-icon color="primary" size="x-large">mdi-music-circle</v-icon>
|
<v-icon color="primary" size="x-large">mdi-music-circle</v-icon>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:append v-if="status.connected && status.canView">
|
<template v-slot:append>
|
||||||
<v-menu v-model="chanListMenuOpen">
|
<v-menu
|
||||||
|
v-model="chanListMenuOpen"
|
||||||
|
v-if="status.connected && status.canView"
|
||||||
|
>
|
||||||
<template v-slot:activator="{ props }">
|
<template v-slot:activator="{ props }">
|
||||||
<v-btn
|
<v-btn
|
||||||
color="black"
|
color="black"
|
||||||
@ -156,8 +159,9 @@
|
|||||||
v-bind="props"
|
v-bind="props"
|
||||||
></v-btn>
|
></v-btn>
|
||||||
</template>
|
</template>
|
||||||
<v-card min-width="300">
|
<v-card min-width="300" class="rounded-lg">
|
||||||
<v-card-content>
|
<v-card-content>
|
||||||
|
<v-container>
|
||||||
<v-form @submit.prevent="add">
|
<v-form @submit.prevent="add">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="url"
|
v-model="url"
|
||||||
@ -182,6 +186,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-form>
|
</v-form>
|
||||||
|
</v-container>
|
||||||
</v-card-content>
|
</v-card-content>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
@ -290,7 +295,7 @@ import type { Status } from "@/data/music/Status";
|
|||||||
import * as audioService from "@/services/audioService";
|
import * as audioService from "@/services/audioService";
|
||||||
import { getVoiceChannels } from "@/services/guildService";
|
import { getVoiceChannels } from "@/services/guildService";
|
||||||
import { useEventQueuStore } from "@/stores/eventQueu";
|
import { useEventQueuStore } from "@/stores/eventQueu";
|
||||||
import { computed } from "@vue/reactivity";
|
import { computed } from "vue";
|
||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { onBeforeRouteLeave, onBeforeRouteUpdate } from "vue-router";
|
import { onBeforeRouteLeave, onBeforeRouteUpdate } from "vue-router";
|
||||||
|
|
||||||
@ -500,7 +505,7 @@ audioService.getAudioStatus(properties.guild.id).then((value) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
audioService.getAudioStatus(properties.guild.id).then((value) => {
|
audioService.getAudioStatus(properties.guild.id).then((value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
status.value = value.data;
|
status.value = value.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user