Skip to content

Commit

Permalink
[MNT-24637] ADW: Options to edit files marked as records available in…
Browse files Browse the repository at this point in the history
… Favorites Files list (#10289)
  • Loading branch information
jacekpluta authored Oct 9, 2024
1 parent a93f0bd commit 3d49593
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']
})
}
]
Expand All @@ -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
]);
Expand All @@ -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']
})
}
]
Expand All @@ -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
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ export class CustomResourcesService {
}),
...(entry.properties || {})
};
target.aspectNames = entry?.aspectNames ?? [];
target.allowableOperations = entry?.allowableOperations ?? [];

return {
entry: target
Expand Down
2 changes: 2 additions & 0 deletions lib/js-api/src/api/content-rest-api/model/favorite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d49593

Please sign in to comment.