mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6926] Fix plugins routing (#3930)
* [ACS-6926] fix plugins routing * [ACS-6926] add implement CanActivateChild
This commit is contained in:
committed by
GitHub
parent
32112392c6
commit
de74b3bebc
@@ -204,19 +204,13 @@
|
||||
"order": 100,
|
||||
"title": "APP.BROWSE.FILE.SIDENAV_LINK.LABEL",
|
||||
"description": "APP.BROWSE.FILE.SIDENAV_LINK.TOOLTIP",
|
||||
"rules": {
|
||||
"visible": "app.isContentServiceEnabled"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"id": "app.navbar.personalFiles",
|
||||
"order": 100,
|
||||
"title": "APP.BROWSE.PERSONAL.SIDENAV_LINK.LABEL",
|
||||
"description": "APP.BROWSE.PERSONAL.SIDENAV_LINK.TOOLTIP",
|
||||
"route": "personal-files",
|
||||
"rules": {
|
||||
"visible": "app.isContentServiceEnabled"
|
||||
}
|
||||
"route": "personal-files"
|
||||
},
|
||||
{
|
||||
"id": "app.navbar.libraries.files",
|
||||
|
@@ -40,11 +40,16 @@ import { RuleActionListUiComponent } from './rule-details/actions/rule-action-li
|
||||
import { RuleActionUiComponent } from './rule-details/actions/rule-action.ui-component';
|
||||
import { RuleListUiComponent } from './rule-list/rule-list/rule-list.ui-component';
|
||||
import { RuleSetPickerSmartComponent } from './rule-set-picker/rule-set-picker.smart-component';
|
||||
import { PluginEnabledGuard } from '@alfresco/aca-shared';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: 'rules',
|
||||
component: ManageRulesSmartComponent
|
||||
component: ManageRulesSmartComponent,
|
||||
canActivate: [PluginEnabledGuard],
|
||||
data: {
|
||||
plugin: 'plugins.folderRules'
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user