mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[AAE-8201] - Add a way to hide libraries and secondary navbar sections (#2492)
* [AAE-8201] - Add a way to hide libraries and secondary navbar sections * Add new variable * Rename variable for toggling content service sections * Fix lint errors * Remove unnecessary or condition
This commit is contained in:
@@ -32,6 +32,12 @@ export interface AcaRuleContext extends RuleContext {
|
||||
withCredentials: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the content plugin is enabled.
|
||||
* JSON ref: `app.isContentServiceEnabled`
|
||||
*/
|
||||
export const isContentServiceEnabled = (): boolean => localStorage && localStorage.getItem('contentService') !== 'false';
|
||||
|
||||
/**
|
||||
* Checks if user can copy selected node.
|
||||
* JSON ref: `app.canCopyNode`
|
||||
|
Reference in New Issue
Block a user