diff --git a/frontend/components/notifications/management/NotificationsManagementPairedDeviceModalContent.vue b/frontend/components/notifications/management/NotificationsManagementPairedDeviceModalContent.vue index 4aa91fc2d..3118dc856 100644 --- a/frontend/components/notifications/management/NotificationsManagementPairedDeviceModalContent.vue +++ b/frontend/components/notifications/management/NotificationsManagementPairedDeviceModalContent.vue @@ -10,12 +10,12 @@ const props = defineProps<{ }>() const emit = defineEmits<{ - (e: 'remove-device', id: string): void, + (e: 'remove-device', id: number): void, (e: 'toggle-notifications', { id, value, }: { - id: string, + id: number, value: boolean, }): void, }>() diff --git a/frontend/components/notifications/management/NotificationsManagementPairedDevicesModal.vue b/frontend/components/notifications/management/NotificationsManagementPairedDevicesModal.vue index d4ed85e8a..c4fea645a 100644 --- a/frontend/components/notifications/management/NotificationsManagementPairedDevicesModal.vue +++ b/frontend/components/notifications/management/NotificationsManagementPairedDevicesModal.vue @@ -11,7 +11,7 @@ const handleToggleNotifications = ({ id, value, }: { - id: string, + id: number, value: boolean, }) => { notificationsManagementStore.setNotificationForPairedDevice({ diff --git a/frontend/stores/notifications/useNotificationsManagementStore.ts b/frontend/stores/notifications/useNotificationsManagementStore.ts index f27f09553..776caa87e 100644 --- a/frontend/stores/notifications/useNotificationsManagementStore.ts +++ b/frontend/stores/notifications/useNotificationsManagementStore.ts @@ -44,7 +44,7 @@ export const useNotificationsManagementStore = defineStore('notifications-manage ) } - const removeDevice = async (id: string) => { + const removeDevice = async (id: number) => { await fetch( API_PATH.NOTIFICATIONS_MANAGEMENT_PAIRED_DEVICES_DELETE, {}, @@ -61,7 +61,7 @@ export const useNotificationsManagementStore = defineStore('notifications-manage id, value, }: { - id: string, + id: number, value: boolean, }) => { await fetch(