config: don't show redudant isrouting when templatetype is show to admin

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-12-08 13:50:53 +05:30
parent f1ec81a250
commit dffbe329b3

View File

@ -102,7 +102,7 @@ export default {
args: (record, store) => {
var fields = ['name', 'displaytext', 'passwordenabled', 'ostypeid', 'isdynamicallyscalable']
if (['Admin'].includes(store.userInfo.roletype)) {
fields.push('isrouting', 'templatetype')
fields.push('templatetype')
}
return fields
},