Add error dialog for too many devices

This commit is contained in:
lilia 2015-06-19 16:40:33 -07:00
parent f126e3b21b
commit 3dd8056487
5 changed files with 12 additions and 2 deletions

View file

@ -83,7 +83,8 @@
window.close();
}).catch(function(e) {
if (e.name === 'HTTPError' && e.message == 411) {
return; // TODO: too many devices
$('.progress-dialog').hide();
$('.error-dialog').show();
}
else {
throw e;