fix: toasts (#3333)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-12-10 21:11:05 -08:00
1 parent e598cfe31c
commit 49caa2b113
2 files changed
+3

No files matched your search

+2
View File
@@ -120,6 +120,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
runner.file_map.force_rebuild();
// Tell the server to show a loading page for any new requests
devserver.send_reload_start().await;
devserver.start_build().await;
} else {
tracing::warn!(
@@ -227,6 +228,7 @@ pub(crate) async fn serve_all(mut args: ServeArgs) -> Result<()> {
builder.rebuild(args.build_arguments.clone());
runner.file_map.force_rebuild();
devserver.send_reload_start().await;
devserver.start_build().await
}
+1
View File
@@ -245,6 +245,7 @@ impl WebServer {
self.build_status.set(Status::BuildError {
error: ansi_to_html::convert(&error).unwrap_or(error),
});
self.send_reload_failed().await;
self.send_build_status().await;
}
}