From c2a0887dc63e07e7c18aba4a4c646d2eb62234dc Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 13 Jun 2025 23:27:49 +0100 Subject: [PATCH] fix: add missing info method to toast notifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add PulseApp.ui.toast.info() method that was referenced but not implemented - Fixes TypeError when switching update channels in settings - Method calls showToast with 'info' type and 4000ms duration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/public/js/ui/toastNotifications.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/public/js/ui/toastNotifications.js b/src/public/js/ui/toastNotifications.js index d8ea4de3a..29288afe8 100644 --- a/src/public/js/ui/toastNotifications.js +++ b/src/public/js/ui/toastNotifications.js @@ -229,6 +229,10 @@ PulseApp.ui.toast = (() => { return showToast(message, 'warning', 5000); } + function info(message) { + return showToast(message, 'info', 4000); + } + function confirm(message, onConfirm, onCancel = null) { return showConfirmToast(message, onConfirm, onCancel); } @@ -242,6 +246,7 @@ PulseApp.ui.toast = (() => { success, error, warning, + info, confirm }; })();