Infer if the user has no environment role

This commit is contained in:
Montana
2018-09-20 15:04:33 -04:00
parent e9f9ff0cd5
commit a8b777acda
3 changed files with 3 additions and 42 deletions

View File

@@ -45,10 +45,10 @@ export default {
return this.choices[arr][1].name
}
}
return this.value
return this.value ? this.value : "no access"
},
label_class: function () {
return this.value === "no_access" ?
return this.displayName === "no access" ?
"label" : "label label--success"
}
}