diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-01-12 15:19:02 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-02-09 12:00:57 +0100 |
commit | 15662055b24b1bf4b6007a6a07b642234b264521 (patch) | |
tree | 77762b106364c8ff9103d0c836fe7fc6977664ea /ui/app | |
parent | 776febf6970deeef999255392c6480d1ff34c6f6 (diff) |
[feat] Get more detailed status report for email
- Resolves: #8754
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/lib/bitmask.js | 9 |
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]); }, /** |