e4d83d0fe3
* added details for groups * add includeSubGroups checkbox * added tests * fixed reload for group attributes * fixed spacing on associate roles tab * fixed group reload after save * fixed test
9 lines
320 B
TypeScript
9 lines
320 B
TypeScript
export const getId = (pathname: string) => {
|
|
const pathParts = pathname.substr(1).split("/");
|
|
return pathParts.length > 1 ? pathParts.splice(2) : undefined;
|
|
};
|
|
|
|
export const getLastId = (pathname: string) => {
|
|
const pathParts = getId(pathname);
|
|
return pathParts ? pathParts[pathParts.length - 1] : undefined;
|
|
};
|