mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Fix create menu and viewer evaluators not in sync with store values (#1634)
This commit is contained in:
@@ -40,6 +40,7 @@ import { Subject } from 'rxjs';
|
||||
export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
@Input()
|
||||
nodeId: string;
|
||||
|
||||
@Input()
|
||||
node: MinimalNodeEntity;
|
||||
|
||||
|
@@ -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();
|
||||
|
@@ -26,7 +26,7 @@
|
||||
import { AppExtensionService, ContentApiService } from '@alfresco/aca-shared';
|
||||
import {
|
||||
AppStore,
|
||||
getAppSelection,
|
||||
getRuleContext,
|
||||
isInfoDrawerOpened,
|
||||
SetSelectedNodesAction,
|
||||
ClosePreviewAction,
|
||||
@@ -125,10 +125,10 @@ export class AppViewerComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
|
||||
this.store
|
||||
.select(getAppSelection)
|
||||
.select(getRuleContext)
|
||||
.pipe(takeUntil(this.onDestroy$))
|
||||
.subscribe((selection) => {
|
||||
this.selection = selection;
|
||||
.subscribe((ruleContext) => {
|
||||
this.selection = ruleContext.selection;
|
||||
|
||||
this.toolbarActions = this.extensions.getViewerToolbarActions();
|
||||
this.openWith = this.extensions.openWithActions;
|
||||
|
Reference in New Issue
Block a user