🚑 Fix for vutify beta 5 (#31)

This commit is contained in:
Sébastien Clément 2022-07-01 11:44:47 +02:00 committed by GitHub
parent 4a1e33a162
commit 855a48b322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 32 deletions

View File

@ -3,8 +3,8 @@
<v-card>
<v-card-title>{{ props.descriptor.name }}</v-card-title>
<v-card-content class="pt-1">
<v-container class="py-0">
<v-row v-if="props.descriptor.mainField" class="mb-4">
<v-container class="pt-0">
<v-row v-if="props.descriptor.mainField">
<v-col>
<bool-field-component
v-if="props.descriptor.mainField.type == 'BOOL'"
@ -41,7 +41,7 @@
<script setup lang="ts">
import type { SettingDescrition } from "@/data/Setting/SettingDescription";
import { useSettingStore } from "@/stores/setting";
import { computed } from "@vue/reactivity";
import { computed } from "vue";
import { storeToRefs } from "pinia";
import boolFieldComponent from "./fields/BoolFieldComponent.vue";
import SelectFieldComponent from "./fields/SelectFieldComponent.vue";

View File

@ -3,8 +3,11 @@
<template v-slot:prepend>
<v-icon color="primary" size="x-large">mdi-music-circle</v-icon>
</template>
<template v-slot:append v-if="status.connected && status.canView">
<v-menu v-model="chanListMenuOpen">
<template v-slot:append>
<v-menu
v-model="chanListMenuOpen"
v-if="status.connected && status.canView"
>
<template v-slot:activator="{ props }">
<v-btn
color="black"
@ -156,32 +159,34 @@
v-bind="props"
></v-btn>
</template>
<v-card min-width="300">
<v-card min-width="300" class="rounded-lg">
<v-card-content>
<v-form @submit.prevent="add">
<v-text-field
v-model="url"
density="compact"
variant="outlined"
label="Url"
hide-details="auto"
color="primary"
autofocus
:loading="urlLoading"
:disabled="urlLoading"
>
<template v-slot:append>
<v-icon
@click="add"
color="primary"
:style="urlLoading ? '' : 'opacity: 1'"
:disabled="urlLoading"
>
mdi-plus-circle
</v-icon>
</template>
</v-text-field>
</v-form>
<v-container>
<v-form @submit.prevent="add">
<v-text-field
v-model="url"
density="compact"
variant="outlined"
label="Url"
hide-details="auto"
color="primary"
autofocus
:loading="urlLoading"
:disabled="urlLoading"
>
<template v-slot:append>
<v-icon
@click="add"
color="primary"
:style="urlLoading ? '' : 'opacity: 1'"
:disabled="urlLoading"
>
mdi-plus-circle
</v-icon>
</template>
</v-text-field>
</v-form>
</v-container>
</v-card-content>
</v-card>
</v-menu>
@ -290,7 +295,7 @@ import type { Status } from "@/data/music/Status";
import * as audioService from "@/services/audioService";
import { getVoiceChannels } from "@/services/guildService";
import { useEventQueuStore } from "@/stores/eventQueu";
import { computed } from "@vue/reactivity";
import { computed } from "vue";
import { ref, watch } from "vue";
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) => {
if (value) {
status.value = value.data;