mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-543] Disable Share feature based on repository property (#658)
* add visibility type to navigation schema * repository data model * add repository state * add repository state * add repository evaluator * allot navigation elements to called again * AppRuleContext extends * repository status resolver * map repository evaluator * reevaluate navigation elements * generic route evaluator * add route guard on Share * evaluate guard based on data property * changed old imports * add Action suffix * set state false by default * tree shakable services to simplify rebase * fix rebase * isQuickShareEnabled initial null state * repository store effects * repository store actions * refactored * refactored
This commit is contained in:
committed by
Denys Vuika
parent
30863e7bdd
commit
8d9d3dbc45
@@ -27,6 +27,7 @@ import { CoreModule } from '@alfresco/adf-core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core';
|
||||
import { LayoutComponent } from '../components/layout/layout.component';
|
||||
import * as repository from './evaluators/repository.evaluators';
|
||||
import * as app from './evaluators/app.evaluators';
|
||||
import * as nav from './evaluators/navigation.evaluators';
|
||||
import { AppExtensionService } from './extension.service';
|
||||
@@ -109,7 +110,9 @@ export class CoreExtensionsModule {
|
||||
'app.navigation.isNotRecentFiles': nav.isNotRecentFiles,
|
||||
'app.navigation.isSearchResults': nav.isSearchResults,
|
||||
'app.navigation.isNotSearchResults': nav.isNotSearchResults,
|
||||
'app.navigation.isPreview': nav.isPreview
|
||||
'app.navigation.isPreview': nav.isPreview,
|
||||
|
||||
'repository.isQuickShareEnabled': repository.hasQuickShareEnabled
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user