mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
[ACS-5645] fixed aspect lock issue in small screen
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
||||
import { NodeEntry, SharedLinkEntry, Node, NodesApi } from '@alfresco/js-api';
|
||||
import { ChangeDetectorRef, Component, OnInit, ViewEncapsulation } from '@angular/core';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { isLocked } from '@alfresco/aca-shared';
|
||||
import { AppExtensionService, isLocked } from '@alfresco/aca-shared';
|
||||
import { AlfrescoApiService } from '@alfresco/adf-core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
@@ -64,7 +64,8 @@ export class ToggleEditOfflineComponent implements OnInit {
|
||||
private store: Store<AppStore>,
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private nodeActionsService: NodeActionsService,
|
||||
private cdr: ChangeDetectorRef
|
||||
private cdr: ChangeDetectorRef,
|
||||
private extensions: AppExtensionService
|
||||
) {
|
||||
this.nodesApi = new NodesApi(this.alfrescoApiService.getInstance());
|
||||
}
|
||||
@@ -80,6 +81,7 @@ export class ToggleEditOfflineComponent implements OnInit {
|
||||
|
||||
async onClick() {
|
||||
await this.toggleLock(this.selection);
|
||||
this.extensions.updateSidebarActions();
|
||||
}
|
||||
|
||||
private async toggleLock(node: NodeEntry | SharedLinkEntry) {
|
||||
|
@@ -348,6 +348,10 @@ export class AppExtensionService implements RuleContext {
|
||||
};
|
||||
}
|
||||
|
||||
updateSidebarActions() {
|
||||
this._sidebarActions.next(this.loader.getContentActions(this.config, 'features.sidebar.toolbar'));
|
||||
}
|
||||
|
||||
getCreateActions(): Observable<Array<ContentActionRef>> {
|
||||
return this._createActions.pipe(
|
||||
map((createActions) =>
|
||||
|
Reference in New Issue
Block a user