debian-mirror-gitlab/app/assets/javascripts/admin/users/utils.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
208 B
JavaScript
Raw Normal View History

2021-03-11 19:13:27 +05:30
export const generateUserPaths = (paths, id) => {
return Object.fromEntries(
Object.entries(paths).map(([action, genericPath]) => {
return [action, genericPath.replace('id', id)];
}),
);
};