summaryrefslogtreecommitdiff
path: root/ui/app/models/provider.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-02-28 22:12:09 -0600
committerelijah <elijah@riseup.net>2017-02-28 22:12:31 -0600
commit4a5e181138e4ccd324d33426f3903825c178af48 (patch)
treebcaaa8eda80bd783b720e493d9b1919c614903a9 /ui/app/models/provider.js
parentbcfd0c7fd461876d080bca14ed4d038837834f02 (diff)
[bug] correctly determine available services in the ui
Diffstat (limited to 'ui/app/models/provider.js')
-rw-r--r--ui/app/models/provider.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/models/provider.js b/ui/app/models/provider.js
index 2ed2dc8c..af634339 100644
--- a/ui/app/models/provider.js
+++ b/ui/app/models/provider.js
@@ -23,6 +23,14 @@ export default class Provider {
return this._description[LOCALE]
}
+ get hasEmail() {
+ return this.services.includes("mx")
+ }
+
+ get hasVPN() {
+ return this.services.includes("openvpn")
+ }
+
static setup(domain) {
return bitmask.bonafide.provider.create(domain).then(
response => {