mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1508] extensions: wave 1 (#480)
* initial structure scaffold * core extensions module * simple navbar composition * allow using app routes instead of registered * migrate to new navbar setup * remove commented out tests * populate toolbar * evaluate expressions * redirect to url from toolbar * populate "open with" viewer menu * update test setup * experimental flag for extensions * test fixes * fix tests * code improvements, order support * improve routing management * populate "create" menu * extra dictionaries for spellcheck * allow disabling extension content * support file/folder targets for toolbar actions * add safety check * navigate directly * toolbar actions for all pages * support route data * "experimental" flag for "create" menu extensions * code fixes
This commit is contained in:
@@ -37,6 +37,7 @@ import {
|
||||
SetLanguagePickerAction,
|
||||
SetSharedUrlAction
|
||||
} from './store/actions';
|
||||
import { ExtensionService } from './extensions/extension.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -51,7 +52,8 @@ export class AppComponent implements OnInit {
|
||||
private store: Store<AppStore>,
|
||||
private config: AppConfigService,
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private authenticationService: AuthenticationService) {
|
||||
private authenticationService: AuthenticationService,
|
||||
private extensions: ExtensionService) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -83,6 +85,12 @@ export class AppComponent implements OnInit {
|
||||
|
||||
pageTitle.setTitle(data.title || '');
|
||||
});
|
||||
|
||||
this.extensions.init();
|
||||
|
||||
this.router.config.unshift(
|
||||
...this.extensions.getApplicationRoutes()
|
||||
);
|
||||
}
|
||||
|
||||
private loadAppSettings() {
|
||||
|
Reference in New Issue
Block a user