mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5034] [GroupCloudComponent] Provide a way to make pre-selected groups read-only. (#5306)
* Added readonly property to the IdentityGroupModel. * Updated unit tests. * Changed class to interface. * Updated doc
This commit is contained in:
committed by
Maurizio Vitale
parent
c01f2744b6
commit
cc4c9bc567
@@ -57,17 +57,17 @@ export const mockEffectiveRoles = [
|
||||
|
||||
export const mockJoinGroupRequest: IdentityJoinGroupRequestModel = {userId: 'mock-hser-id', groupId: 'mock-group-id', realm: 'mock-realm-name'};
|
||||
|
||||
export const mockGroup1 = new IdentityGroupModel({
|
||||
export const mockGroup1 = <IdentityGroupModel> {
|
||||
id: 'mock-group-id-1', name: 'Mock Group 1', path: '/mock', subGroups: []
|
||||
});
|
||||
};
|
||||
|
||||
export const mockGroup2 = new IdentityGroupModel({
|
||||
export const mockGroup2 = <IdentityGroupModel> {
|
||||
id: 'mock-group-id-2', name: 'Mock Group 2', path: '', subGroups: []
|
||||
});
|
||||
};
|
||||
|
||||
export const mockGroups = [
|
||||
new IdentityGroupModel({ id: 'mock-group-id-1', name: 'Mock Group 1', path: '/mock', subGroups: [] }),
|
||||
new IdentityGroupModel({ id: 'mock-group-id-2', name: 'Mock Group 2', path: '', subGroups: [] })
|
||||
<IdentityGroupModel> { id: 'mock-group-id-1', name: 'Mock Group 1', path: '/mock', subGroups: [] },
|
||||
<IdentityGroupModel> { id: 'mock-group-id-2', name: 'Mock Group 2', path: '', subGroups: [] }
|
||||
];
|
||||
|
||||
export const queryUsersMockApi = {
|
||||
|
Reference in New Issue
Block a user