mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Merge pull request #4859 from mbliznikova/4845_provide_error_message_when_account_size_limit_reached
Provide an informative error message when account size limit is reached
This commit is contained in:
commit
d4e4c4e1dd
1 changed files with 8 additions and 1 deletions
|
@ -1204,6 +1204,13 @@ export default {
|
||||||
}, 300);
|
}, 300);
|
||||||
}).catch(function(e) {
|
}).catch(function(e) {
|
||||||
switch(e.response.status) {
|
switch(e.response.status) {
|
||||||
|
case 403:
|
||||||
|
self.uploading = false;
|
||||||
|
io.value = null;
|
||||||
|
swal('Account size limit reached', 'Contact your admin for assistance.', 'error');
|
||||||
|
self.page = 2;
|
||||||
|
break;
|
||||||
|
|
||||||
case 413:
|
case 413:
|
||||||
self.uploading = false;
|
self.uploading = false;
|
||||||
io.value = null;
|
io.value = null;
|
||||||
|
|
Loading…
Reference in a new issue