diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-29 16:41:22 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-30 09:57:08 +0200 |
commit | 5d15051da4a170b5c944ccffe372f1ebe2649924 (patch) | |
tree | ffef7fcc54656f74cdd9df24ba8df4e901451154 /core/js/setupchecks.js | |
parent | a07254856ce532bfe5c49c1b53247daf88dbdd4a (diff) | |
download | nextcloud-server-5d15051da4a170b5c944ccffe372f1ebe2649924.tar.gz nextcloud-server-5d15051da4a170b5c944ccffe372f1ebe2649924.zip |
Allow setupchecks to specify a warning level
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 35f24b188fa..bf8dba78c4b 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -10,6 +10,12 @@ (function() { OC.SetupChecks = { + + /* Message types */ + MESSAGE_TYPE_INFO:0, + MESSAGE_TYPE_WARNING:1, + MESSAGE_TYPE_ERROR:2, + /** * Check whether the WebDAV connection works. * @@ -60,9 +66,10 @@ ); } if(!data.isMemcacheConfigured) { - messages.push( - t('core', 'No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our <a href="{docLink}">documentation</a>.', {docLink: data.memcacheDocs}) - ); + messages.push({ + msg: t('core', 'No memory cache has been configured. To enhance your performance please configure a memcache if available. Further information can be found in our <a href="{docLink}">documentation</a>.', {docLink: data.memcacheDocs}), + type: OC.SetupChecks.MESSAGE_TYPE_TIP + }); } if(!data.isUrandomAvailable) { messages.push( |