about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/actions/alerts.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-02-10 21:35:04 +0100
committerThibaut Girka <thib@sitedethib.com>2019-02-10 21:44:14 +0100
commit7ed2aeb6e9b0fe4fc7fbe7c76003d1e044c682eb (patch)
tree260080d7d471025a281d5a22d4187b3843493125 /app/javascript/flavours/glitch/actions/alerts.js
parenta963ea67dda17f69ed783b3fbcc91e5ce3858ad3 (diff)
[Glitch] Allow multiple files upload through web UI, including drag & drop
Port 750c67660de753065ec160b4e389ba0dda2f81cc to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/actions/alerts.js')
-rw-r--r--app/javascript/flavours/glitch/actions/alerts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/actions/alerts.js b/app/javascript/flavours/glitch/actions/alerts.js
index 3f5d7ef46..50cd48a9e 100644
--- a/app/javascript/flavours/glitch/actions/alerts.js
+++ b/app/javascript/flavours/glitch/actions/alerts.js
@@ -22,7 +22,7 @@ export function clearAlert() {
   };
 };
 
-export function showAlert(title, message) {
+export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage) {
   return {
     type: ALERT_SHOW,
     title,
@@ -44,6 +44,6 @@ export function showAlertForError(error) {
     return showAlert(title, message);
   } else {
     console.error(error);
-    return showAlert(messages.unexpectedTitle, messages.unexpectedMessage);
+    return showAlert();
   }
 }