1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-03-17 21:18:19 +02:00

UI: Broadcast "delete all" action to reload all connected clients

This commit is contained in:
Ralph Slooten 2022-10-16 08:37:46 +13:00
parent baaf3a3a23
commit bd45d9dffe
2 changed files with 3 additions and 1 deletions

View File

@ -537,7 +537,7 @@ export default {
</a>
</div>
<div class="col col-md-9 col-lg-5 LOL" v-if="!message">
<div class="col col-md-9 col-lg-5" v-if="!message">
<form v-on:submit="doSearch">
<div class="input-group">
<a class="navbar-brand d-md-none" href="#" v-on:click="reloadMessages">

View File

@ -643,6 +643,8 @@ func DeleteAllMessages() error {
dbLastAction = time.Now()
dbDataDeleted = false
websockets.Broadcast("prune", nil)
return err
}