diff --git a/server/server.go b/server/server.go index 2e20833..6e683fb 100644 --- a/server/server.go +++ b/server/server.go @@ -18,6 +18,7 @@ import ( "github.com/axllent/mailpit/server/apiv1" "github.com/axllent/mailpit/server/handlers" "github.com/axllent/mailpit/server/websockets" + "github.com/axllent/mailpit/storage" "github.com/axllent/mailpit/utils/logger" "github.com/gorilla/mux" ) @@ -223,6 +224,7 @@ func addSlashToWebroot(w http.ResponseWriter, r *http.Request) { // Websocket to broadcast changes func apiWebsocket(w http.ResponseWriter, r *http.Request) { websockets.ServeWs(websockets.MessageHub, w, r) + storage.BroadcastMailboxStats() } // Wrapper to artificially inject a basePath to the swagger.json if a webroot has been specified diff --git a/server/ui-src/App.vue b/server/ui-src/App.vue index 6fd7e0b..79a9bca 100644 --- a/server/ui-src/App.vue +++ b/server/ui-src/App.vue @@ -1,12 +1,8 @@ diff --git a/server/ui-src/components/AjaxLoader.vue b/server/ui-src/components/AjaxLoader.vue index 9012046..237a4d5 100644 --- a/server/ui-src/components/AjaxLoader.vue +++ b/server/ui-src/components/AjaxLoader.vue @@ -5,6 +5,7 @@ export default { }, } +