mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Revert "[AAE-5874] Re-evaluate extension rules when context changes" (#2301)
* Revert "[AAE-5874] Re-evaluate extension rules when context changes (#2296)"
This reverts commit fb140531f4
.
* [ci:force]
This commit is contained in:
committed by
Denys Vuika
parent
38cdbfa9c1
commit
de355cc300
@@ -25,6 +25,8 @@
|
||||
|
||||
import { Component, Input, OnInit, OnDestroy, ViewEncapsulation } from '@angular/core';
|
||||
import { ContentActionRef } from '@alfresco/adf-extensions';
|
||||
import { AppStore, getRuleContext } from '@alfresco/aca-shared/store';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { takeUntil } from 'rxjs/operators';
|
||||
import { Subject } from 'rxjs';
|
||||
import { AppExtensionService } from '@alfresco/aca-shared';
|
||||
@@ -46,14 +48,14 @@ export class CreateMenuComponent implements OnInit, OnDestroy {
|
||||
@Input()
|
||||
expanded: boolean;
|
||||
|
||||
constructor(private extensions: AppExtensionService) {}
|
||||
constructor(private store: Store<AppStore>, private extensions: AppExtensionService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.extensions
|
||||
.getCreateActions()
|
||||
this.store
|
||||
.select(getRuleContext)
|
||||
.pipe(takeUntil(this.onDestroy$))
|
||||
.subscribe((createActions) => {
|
||||
this.createActions = createActions;
|
||||
.subscribe(() => {
|
||||
this.createActions = this.extensions.getCreateActions();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user