From ba1c98328cdd4dee9371fa1fbcc7531a7f63f161 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 30 Sep 2022 11:38:12 +0100 Subject: [PATCH] Show notification when a plugin is hot reloaded --- packages/client/src/websocket.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/client/src/websocket.js b/packages/client/src/websocket.js index 827453fad6..0ad445863d 100644 --- a/packages/client/src/websocket.js +++ b/packages/client/src/websocket.js @@ -1,4 +1,8 @@ -import { builderStore, environmentStore } from "./stores/index.js" +import { + builderStore, + environmentStore, + notificationStore, +} from "./stores/index.js" import { get } from "svelte/store" import { io } from "socket.io-client" @@ -31,5 +35,6 @@ export const initWebsocket = () => { // Event handlers socket.on("plugin-update", data => { builderStore.actions.updateUsedPlugin(data.name, data.hash) + notificationStore.actions.info(`"${data.name}" plugin reloaded`) }) }