diff --git a/frontend/src/components/AdminLayout.vue b/frontend/src/components/AdminLayout.vue
index efecf2d..7ea9381 100644
--- a/frontend/src/components/AdminLayout.vue
+++ b/frontend/src/components/AdminLayout.vue
@@ -1,11 +1,14 @@
+
+
+
+
+
KONFIGURACJA
Serwery
Ustaw kanał, na który bot wysyła powiadomienia, lub wyłącz je dla serwera.
+
+
+
{{ loadError }}
+
Ładowanie serwerów…
+
Bot nie jest obecnie na żadnym serwerze Discorda.
+
+
+
+
+
+
+
+ {{ errors[server.guild_id] }}
+
+
+
+
+
diff --git a/frontend/src/components/VoiceChannelPanel.vue b/frontend/src/components/VoiceChannelPanel.vue
index 66b9ceb..3a645bc 100644
--- a/frontend/src/components/VoiceChannelPanel.vue
+++ b/frontend/src/components/VoiceChannelPanel.vue
@@ -9,13 +9,10 @@ const props = defineProps<{ status: BotStatus | null }>()
const { notify, run } = useToasts()
const selected = ref('')
-const selectedNotification = ref('')
const defaultPlays = ref(5)
const channels = computed(() => props.status?.voice_channels ?? [])
const active = computed(() => props.status?.active_voice_channel ?? null)
-const notificationChannels = computed(() => props.status?.text_channels ?? [])
-const activeNotificationId = computed(() => props.status?.active_text_channel_id ?? null)
// Wybór podąża za realnym połączeniem, a bez niego domyślnie wskazuje pierwszy kanał.
watch(
@@ -38,18 +35,6 @@ watch(
{ immediate: true },
)
-watch(
- [activeNotificationId, notificationChannels],
- ([activeChannel, available]) => {
- if (activeChannel) {
- selectedNotification.value = activeChannel
- } else if (!available.some((channel) => channel.channel_id === selectedNotification.value)) {
- selectedNotification.value = available[0]?.channel_id ?? ''
- }
- },
- { immediate: true },
-)
-
async function toggle() {
if (active.value) {
await run(() => api.disconnect(), '', 'Błąd rozłączania')
@@ -62,15 +47,6 @@ async function toggle() {
await run(() => api.connect(selected.value), '', 'Nie udało się połączyć')
}
-async function setNotificationChannel() {
- if (!selectedNotification.value) return
- await run(
- () => api.setNotificationChannel(selectedNotification.value),
- 'Ustawiono kanał logów',
- 'Nie udało się ustawić kanału logów',
- )
-}
-
async function saveDefaultPlays() {
await run(
() => api.setDefaultPlays(defaultPlays.value),
@@ -114,30 +90,6 @@ async function saveDefaultPlays() {
{{ active ? 'Odłącz' : 'Połącz' }}
-
-
-
-