From 8a8d47f8e7c93291eade30cb9481761981f8cb19 Mon Sep 17 00:00:00 2001
From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Date: Sun, 3 May 2020 18:39:00 -0700
Subject: [PATCH] Add try again message to database import
---
data/interfaces/default/app_import.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/data/interfaces/default/app_import.html b/data/interfaces/default/app_import.html
index 96f8a36e..4edfcaee 100644
--- a/data/interfaces/default/app_import.html
+++ b/data/interfaces/default/app_import.html
@@ -187,9 +187,11 @@
$("#import_database_path").val('');
},
error: function (xhr) {
- var msg = " Error (" + xhr.status + ")";
+ var msg = " Error (" + xhr.status + "): ";
if (xhr.status === 413) {
- msg += ": file is too large to upload"
+ msg += "file is too large to upload"
+ } else {
+ msg += 'try again'
}
$("#status-message").html(msg);
},