mirror of https://github.com/rancher/ui.git
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:
parent
2c0e103f34
commit
43434467a8
|
|
@ -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'));
|
||||
}),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue