summaryrefslogtreecommitdiffstats
path: root/js/app
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-01-20 14:16:40 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-20 14:16:40 +0100
commit8f37dbf3863f4720bb05b39c29f91fd854b11f0c (patch)
tree32e47de4fa4b90e9751cee1f219537d78d30f185 /js/app
parent38350e62909f06f93902b09e9963056b1ba470f4 (diff)
also detect maintenance mode
Diffstat (limited to 'js/app')
-rw-r--r--js/app/Config.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/app/Config.js b/js/app/Config.js
index 69d12f9d2..c6c511211 100644
--- a/js/app/Config.js
+++ b/js/app/Config.js
@@ -57,7 +57,9 @@ app.config(function ($routeProvider, $provide, $httpProvider) {
'Try to reload the page!'),
500: t('news', 'Internal server error! Please check your ' +
'data/owncloud.log file for additional ' +
- 'information!')
+ 'information!'),
+ 503: t('news', 'Request failed, ownCloud is in currently ' +
+ 'in maintenance mode!'),
};
// status 0 is a network error
if (response.status in messages) {