[Glitch] Allow multiple files upload through web UI, including drag & drop

Port 750c67660d to glitch-soc
This commit is contained in:
Thibaut Girka
2019-02-10 21:35:04 +01:00
parent a963ea67dd
commit 7ed2aeb6e9
4 changed files with 31 additions and 12 deletions

View File

@@ -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();
}
}