Change PRTB filter for project member to filter serviceAccount roles

so groups and the like are still visible

rancher/rancher#20760
This commit is contained in:
Westly Wright 2019-06-12 10:45:20 -07:00
parent 2c0e103f34
commit 43434467a8
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
2 changed files with 2 additions and 2 deletions

View File

@ -31,6 +31,6 @@ export default Controller.extend(FilterState, {
headers,
searchText: '',
filterableContent: computed('model.projectRoleTemplateBindings.[]', function() {
return get(this, 'model.projectRoleTemplateBindings').filter((b) => get(b, 'userId'));
return get(this, 'model.projectRoleTemplateBindings').filter((b) => !get(b, 'serviceAccount'));
}),
});

View File

@ -75,7 +75,7 @@ export default Component.extend({
// editing
let mOut = [];
set(this, 'memberArray', bindings.filter((b) => get(b, 'userId')).forEach((b) => {
set(this, 'memberArray', bindings.filter((b) => !get(b, 'serviceAccount')).forEach((b) => {
let match = mOut.findBy('principalId', get(b, 'principalIdReference')) ;
if (match) {