diff options
author | bob <bcz@cs.brown.edu> | 2020-02-12 14:54:20 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-12 14:54:20 -0500 |
commit | 2d6e00f48f7c2e6b5a8f512a6427ba56b1b216b4 (patch) | |
tree | 0812859d6c2c6cb897f148588eb4bb2a198be11b /src/client/documents/Documents.ts | |
parent | 30f42e403bd8cca4d20fc1b0d1cf28fbfa3a1524 (diff) | |
parent | 2d76d891cb6a656f3c404d17ffa1cac05e08d115 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index ec5116539..855c59ba2 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -385,8 +385,9 @@ export namespace Docs { Utils.AddServerHandler(_socket, MessageStore.BuxtonImportComplete, ({ deviceCount, errorCount }) => { _socket.off(MessageStore.BuxtonDocumentResult.Message); _socket.off(MessageStore.BuxtonImportComplete.Message); - alert(`Successfully imported ${deviceCount} device${deviceCount === 1 ? "" : "s"}, with ${errorCount} error${errorCount === 1 ? "" : "s"}.`); + alert(`Successfully imported ${deviceCount} device${deviceCount === 1 ? "" : "s"}, with ${errorCount} error${errorCount === 1 ? "" : "s"}, in ${(Date.now() - startTime) / 1000} seconds.`); }); + const startTime = Date.now(); Utils.Emit(_socket, MessageStore.BeginBuxtonImport, ""); return parent; } |