diff --git a/src/components/guild/home/AudioPreviewComponent.vue b/src/components/guild/home/AudioPreviewComponent.vue index 0fe6e09..0e736cc 100644 --- a/src/components/guild/home/AudioPreviewComponent.vue +++ b/src/components/guild/home/AudioPreviewComponent.vue @@ -143,8 +143,49 @@ > - - + + + + + + + + + + + + + + + + ([]); const voiceChannelConnecting = ref(false); +const url = ref(""); +const urlPopup = ref(false); +const urlLoading = ref(false); const progress = computed(() => { if ( @@ -297,6 +343,10 @@ const connectBtnDisable = computed(() => { return status.value.connected && !status.value.canInteract; }); +const addBtnDisabled = computed(() => { + return !status.value.connected && !status.value.canInteract; +}); + const playPauseIcon = computed(() => { return status.value.playBackInfo?.paused ? "mdi-play" : "mdi-pause"; }); @@ -409,6 +459,12 @@ function stop() { .catch(); } +function add() { + if (url.value) { + urlLoading.value = true; + } +} + function timeToMMSS(time: number) { let seconds = Math.floor(time / 1000); const minutes = Math.floor(seconds / 60);