mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-8371] fix viewer preview (#4017)
This commit is contained in:
committed by
GitHub
parent
2bc4e158f2
commit
1f9b34e860
@@ -1418,23 +1418,6 @@ describe('app.evaluators', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('showInfoSelectionButton', () => {
|
||||
it('should return false when user is not in search results page', () => {
|
||||
context.navigation.url = '/trashcan/test';
|
||||
expect(app.showInfoSelectionButton(context)).toBeFalse();
|
||||
});
|
||||
|
||||
it('should return false when user is in preview', () => {
|
||||
context.navigation.url = '/search/preview/test';
|
||||
expect(app.showInfoSelectionButton(context)).toBeFalse();
|
||||
});
|
||||
|
||||
it('should return true when user is in search results page and not in preview', () => {
|
||||
context.navigation.url = '/search/test';
|
||||
expect(app.showInfoSelectionButton(context)).toBeTrue();
|
||||
});
|
||||
});
|
||||
|
||||
describe('isSmartFolder', () => {
|
||||
it('should return false when there is no selection', () => {
|
||||
context.selection.isEmpty = true;
|
||||
|
@@ -552,8 +552,6 @@ export const canInfoPreview = (context: RuleContext): boolean => {
|
||||
return isSearchResult && isNotMultiselect && isFileSelected && isPreview;
|
||||
};
|
||||
|
||||
export const showInfoSelectionButton = (context: RuleContext): boolean => navigation.isSearchResults(context) && !navigation.isPreview(context);
|
||||
|
||||
/**
|
||||
* Checks if the file can be opened with MS Office
|
||||
* JSON ref: `aos.canOpenWithOffice`
|
||||
|
Reference in New Issue
Block a user