mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[MNT-24637] ADW: Options to edit files marked as records available in Favorites Files list (#10289)
This commit is contained in:
@@ -46,7 +46,9 @@ describe('CustomResourcesService', () => {
|
||||
title: 'some-title',
|
||||
description: 'some-description'
|
||||
}
|
||||
}
|
||||
},
|
||||
aspectNames: ['aspect-name-1', 'aspect-name-2'],
|
||||
allowableOperations: ['allowable-operation-1', 'allowable-operation-2']
|
||||
})
|
||||
}
|
||||
]
|
||||
@@ -68,7 +70,9 @@ describe('CustomResourcesService', () => {
|
||||
properties: {
|
||||
'cm:title': 'some-title',
|
||||
'cm:description': 'some-description'
|
||||
}
|
||||
},
|
||||
aspectNames: ['aspect-name-1', 'aspect-name-2'],
|
||||
allowableOperations: ['allowable-operation-1', 'allowable-operation-2']
|
||||
}
|
||||
} as any
|
||||
]);
|
||||
@@ -92,7 +96,9 @@ describe('CustomResourcesService', () => {
|
||||
title: 'some-title',
|
||||
description: 'some-description'
|
||||
}
|
||||
}
|
||||
},
|
||||
aspectNames: ['aspect-name-1', 'aspect-name-2'],
|
||||
allowableOperations: ['allowable-operation-1', 'allowable-operation-2']
|
||||
})
|
||||
}
|
||||
]
|
||||
@@ -115,7 +121,9 @@ describe('CustomResourcesService', () => {
|
||||
'cm:title': 'some-title',
|
||||
'cm:description': 'some-description',
|
||||
'cm:property': 'some-property'
|
||||
}
|
||||
},
|
||||
aspectNames: ['aspect-name-1', 'aspect-name-2'],
|
||||
allowableOperations: ['allowable-operation-1', 'allowable-operation-2']
|
||||
}
|
||||
} as any
|
||||
]);
|
||||
|
@@ -207,6 +207,8 @@ export class CustomResourcesService {
|
||||
}),
|
||||
...(entry.properties || {})
|
||||
};
|
||||
target.aspectNames = entry?.aspectNames ?? [];
|
||||
target.allowableOperations = entry?.allowableOperations ?? [];
|
||||
|
||||
return {
|
||||
entry: target
|
||||
|
@@ -35,6 +35,8 @@ export class Favorite {
|
||||
* A subset of the target favorite properties, system properties and properties already available in the target are excluded.
|
||||
*/
|
||||
properties?: any;
|
||||
aspectNames?: string[];
|
||||
allowableOperations?: string[];
|
||||
|
||||
constructor(input?: Partial<Favorite>) {
|
||||
if (input) {
|
||||
|
Reference in New Issue
Block a user