mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
extensibility docs update (#571)
* docs: custom sidebar tabs * update docs * docs update, simplify extension schema * test fixes
This commit is contained in:
@@ -51,7 +51,7 @@ export abstract class PageComponent implements OnInit, OnDestroy {
|
||||
documentDisplayMode$: Observable<string>;
|
||||
sharedPreviewUrl$: Observable<string>;
|
||||
actions: Array<ContentActionRef> = [];
|
||||
viewerActions: Array<ContentActionRef> = [];
|
||||
viewerToolbarActions: Array<ContentActionRef> = [];
|
||||
canUpdateNode = false;
|
||||
canUpload = false;
|
||||
|
||||
@@ -76,8 +76,8 @@ export abstract class PageComponent implements OnInit, OnDestroy {
|
||||
.pipe(takeUntil(this.onDestroy$))
|
||||
.subscribe(selection => {
|
||||
this.selection = selection;
|
||||
this.actions = this.extensions.getAllowedContentActions();
|
||||
this.viewerActions = this.extensions.getViewerActions();
|
||||
this.actions = this.extensions.getAllowedToolbarActions();
|
||||
this.viewerToolbarActions = this.extensions.getViewerToolbarActions();
|
||||
this.canUpdateNode = this.selection.count === 1 && this.content.canUpdateNode(selection.first);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user