summaryrefslogtreecommitdiff
path: root/ui/app/lib
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-01-12 15:19:02 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2017-02-09 12:00:57 +0100
commit15662055b24b1bf4b6007a6a07b642234b264521 (patch)
tree77762b106364c8ff9103d0c836fe7fc6977664ea /ui/app/lib
parent776febf6970deeef999255392c6480d1ff34c6f6 (diff)
[feat] Get more detailed status report for email
- Resolves: #8754
Diffstat (limited to 'ui/app/lib')
-rw-r--r--ui/app/lib/bitmask.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js
index a6cf8e5..21dbb65 100644
--- a/ui/app/lib/bitmask.js
+++ b/ui/app/lib/bitmask.js
@@ -223,10 +223,15 @@ var bitmask = function(){
/**
* Check the status of the email service
*
+ * @param {string} uid The uid to get status about
+ *
* @return {Promise<string>} User readable status
*/
- status: function() {
- return call(['mail', 'status']);
+ status: function(uid) {
+ if (typeof uid !== 'string') {
+ uid = null
+ }
+ return call(['mail', 'status', uid]);
},
/**