Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

slack_import: Allow replacing uploaded data export files.

Aman Agrawal4823477a70b8
diff --git a/web/src/portico/signup.ts b/web/src/portico/signup.ts
index 9dac0a3a2a3..6b990bc857e 100644
--- a/web/src/portico/signup.ts
+++ b/web/src/portico/signup.ts
@@ -426,6 +426,10 @@ $(() => {
$("#slack-import-start-upload-wrapper").removeClass("hidden");
$("#slack-import-uploaded-file-name").text(file.name!);
});
+ // Reset uppy state to allow user replace existing uploaded file.
+ uppy.on("complete", () => {
+ uppy.clear();
+ });
}
if ($("#slack-import-poll-status").length > 0) {