mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-2745] Viewer - return to location on close (#1196)
* use viewNodeExtras when calling action * open viewer based on ViewNodeExtras data * resolve closing destination based on ViewNodeExtras query params * remove unused param * call ViewNodeAction with correct params * update tests * update docs
This commit is contained in:
@@ -124,6 +124,8 @@ describe('RecentFilesComponent', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
component.onNodeDoubleClick(node);
|
||||
expect(component.showPreview).toHaveBeenCalledWith(node, mockRouter.url);
|
||||
expect(component.showPreview).toHaveBeenCalledWith(node, {
|
||||
location: mockRouter.url
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user