Skip to content

Commit

Permalink
centraldashboard: don't display All namespaces in Manage Contributo…
Browse files Browse the repository at this point in the history
…rs screen (#7188) (#7242)
  • Loading branch information
utsumi-fj committed Dec 6, 2023
1 parent d4aa511 commit 003c421
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import './resources/md2-input/md2-input.js';
import css from './manage-users-view.css';
import template from './manage-users-view.pug';
import utilitiesMixin from './utilities-mixin.js';
import {ALL_NAMESPACES} from './namespace-selector';

export class ManageUsersView extends utilitiesMixin(PolymerElement) {
static get template() {
Expand Down Expand Up @@ -60,8 +61,10 @@ export class ManageUsersView extends utilitiesMixin(PolymerElement) {
];
if (ns.length <= 1) return arr;
const otherNamespaces = namespaces
.filter((n) => n != ownedNamespace)
.filter((n) => n != ownedNamespace
&& n.namespace !== ALL_NAMESPACES)
.map((i) => i.namespace).join(', ');
if (!otherNamespaces.length) return arr;
arr.push(
[otherNamespaces, 'Contributor'],
);
Expand Down

0 comments on commit 003c421

Please sign in to comment.