From 5d15051da4a170b5c944ccffe372f1ebe2649924 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 29 Jul 2015 16:41:22 +0200 Subject: Allow setupchecks to specify a warning level --- core/js/setupchecks.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'core/js/setupchecks.js') 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 documentation.', {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 documentation.', {docLink: data.memcacheDocs}), + type: OC.SetupChecks.MESSAGE_TYPE_TIP + }); } if(!data.isUrandomAvailable) { messages.push( -- cgit v1.2.3