Fix create menu and viewer evaluators not in sync with store values (#1634)

This commit is contained in:
arditdomi
2020-08-26 10:09:22 +01:00
committed by GitHub
parent fc88eb0c97
commit 651fb56ec6
3 changed files with 7 additions and 6 deletions

View File

@@ -25,7 +25,7 @@
import { Component, Input, OnInit, OnDestroy, ViewEncapsulation } from '@angular/core';
import { ContentActionRef } from '@alfresco/adf-extensions';
import { AppStore, getCurrentFolder } from '@alfresco/aca-shared/store';
import { AppStore, getRuleContext } from '@alfresco/aca-shared/store';
import { Store } from '@ngrx/store';
import { takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';
@@ -52,7 +52,7 @@ export class CreateMenuComponent implements OnInit, OnDestroy {
ngOnInit() {
this.store
.select(getCurrentFolder)
.select(getRuleContext)
.pipe(takeUntil(this.onDestroy$))
.subscribe(() => {
this.createActions = this.extensions.getCreateActions();