From c0dbb73a2cffcaab879cdfab4e85f87af46544be Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 22 Jul 2025 13:57:58 -0300 Subject: [PATCH] [Removed] Toast handler, now using the one in SeCoNoHe --- js/toast_handler.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 js/toast_handler.js diff --git a/js/toast_handler.js b/js/toast_handler.js deleted file mode 100644 index 7e5af0f..0000000 --- a/js/toast_handler.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2025 Salvador E. Tropea -// Copyright (c) 2025 Instituto Nacional de TecnologĂ­a Industrial -// License: GPLv3 -// Project: ComfyUI-AudioBatch - -// This script adds an event named "set-audiobatch-toast" -// Used to notify the user in the GUI using the Toast API - -import { app } from "/scripts/app.js"; - -// Register a new extension -app.registerExtension({ - name: "SET.AudioBatch.ToastHandler", // Unique name - - // The setup function is executed when the extension is loaded - setup() { - // Add a listener for our custom event - app.api.addEventListener("set-audiobatch-toast", (event) => { - // The data from Python is in event.detail - const { message, summary, severity } = event.detail; - - // Use the ComfyUI toast API to show the message - // app.ui.toast.addMessage is the modern way to do this - app.extensionManager.toast.add({ - severity: severity, - summary: summary, - detail: message, - life: 6000 - }); - }); - }, -});