mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[AAE-10533] Generic App shell for HxP applications (#2679)
* [AAE-10533] Generic App shell for HxP applications * refactor * fix scss mixin path * remove forRoot in content-plugin * remove provided routers * revert router service * revert template usage * Added shell markdown * Move login component to content-plugin * Moved logic from app.component to app.service * remove upload-area from shell * cleaning * cleaning * update md * abstract preferences * allow to set shell parent route * fix preferencesService name * Fix for sidenav * Fix CR comments * [ci:force] * move translation service mock to aca-shared * fix e2e * Fix page title * remove drop area wrapper from whole application * Fix e2e * [ci:force] * Remove blank page from shell * Add upload files dialog * [ci:force] * Remove ExtensionsDataLoaderGuard from shell
This commit is contained in:
@@ -483,8 +483,14 @@ export const isLibraryManager = (context: RuleContext): boolean =>
|
||||
*
|
||||
* @param context Rule execution context
|
||||
*/
|
||||
export const canInfoPreview = (context: RuleContext): boolean =>
|
||||
navigation.isSearchResults(context) && !isMultiselection(context) && !hasFolderSelected(context) && !navigation.isPreview(context);
|
||||
export const canInfoPreview = (context: RuleContext): boolean => {
|
||||
const isSearchResult = navigation.isSearchResults(context);
|
||||
const isNotMultiselect = !isMultiselection(context);
|
||||
const isFileSelected = !hasFolderSelected(context);
|
||||
const isPreview = !navigation.isPreview(context);
|
||||
|
||||
return isSearchResult && isNotMultiselect && isFileSelected && isPreview;
|
||||
};
|
||||
|
||||
export const showInfoSelectionButton = (context: RuleContext): boolean => navigation.isSearchResults(context) && !navigation.isPreview(context);
|
||||
|
||||
|
Reference in New Issue
Block a user