mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
replace and clean up methods (#352)
This commit is contained in:
committed by
Denys Vuika
parent
3ca63b8433
commit
5dee937cf0
@@ -8,7 +8,7 @@
|
||||
<button
|
||||
mat-icon-button
|
||||
color="primary"
|
||||
*ngIf="canPreviewFile(documentList.selection)"
|
||||
*ngIf="isFileSelected(documentList.selection)"
|
||||
title="{{ 'APP.ACTIONS.VIEW' | translate }}"
|
||||
(click)="onNodeDoubleClick(documentList.selection[0]?.entry)">
|
||||
<mat-icon>open_in_browser</mat-icon>
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<button mat-icon-button
|
||||
[color]="infoDrawerOpened ? 'accent' : 'primary'"
|
||||
*ngIf="documentList.selection.length"
|
||||
*ngIf="hasSelection(documentList.selection)"
|
||||
title="{{ 'APP.ACTIONS.DETAILS' | translate }}"
|
||||
(click)="toggleSidebar()">
|
||||
<mat-icon>info_outline</mat-icon>
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
<button
|
||||
mat-menu-item
|
||||
*ngIf="canMove(documentList.selection)"
|
||||
*ngIf="permission.check(documentList.selection, ['delete'])"
|
||||
[acaMoveNode]="documentList.selection">
|
||||
<mat-icon color="primary">library_books</mat-icon>
|
||||
<span>{{ 'APP.ACTIONS.MOVE' | translate }}</span>
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
<button
|
||||
mat-menu-item
|
||||
*ngIf="canDelete(documentList.selection)"
|
||||
*ngIf="permission.check(documentList.selection, ['delete'])"
|
||||
[acaDeleteNode]="documentList.selection">
|
||||
<mat-icon color="primary">delete</mat-icon>
|
||||
<span>{{ 'APP.ACTIONS.DELETE' | translate }}</span>
|
||||
@@ -177,8 +177,8 @@
|
||||
</div>
|
||||
|
||||
<adf-content-metadata-card
|
||||
[readOnly]="!canUpdate(documentList.selection)"
|
||||
[displayEmpty]="canUpdate(documentList.selection)"
|
||||
[readOnly]="!permission.check(nodeInfo.node, ['update'])"
|
||||
[displayEmpty]="permission.check(nodeInfo.node, ['update'])"
|
||||
[preset]="'custom'"
|
||||
[node]="infoInstance.node">
|
||||
</adf-content-metadata-card>
|
||||
|
@@ -43,6 +43,7 @@ import { DocumentListService } from '@alfresco/adf-content-services';
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { NodeInfoDirective } from '../../common/directives/node-info.directive';
|
||||
import { AppConfigPipe } from '../../common/pipes/app-config.pipe';
|
||||
import { NodePermissionService } from '../../common/services/node-permission.service';
|
||||
|
||||
import { RecentFilesComponent } from './recent-files.component';
|
||||
|
||||
@@ -96,6 +97,7 @@ describe('RecentFiles Routed Component', () => {
|
||||
LogService,
|
||||
NotificationService,
|
||||
ContentManagementService,
|
||||
NodePermissionService,
|
||||
ContentService,
|
||||
NodesApiService,
|
||||
DocumentListService,
|
||||
|
@@ -32,6 +32,7 @@ import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||
|
||||
import { ContentManagementService } from '../../common/services/content-management.service';
|
||||
import { PageComponent } from '../page.component';
|
||||
import { NodePermissionService } from '../../common/services/node-permission.service';
|
||||
|
||||
@Component({
|
||||
templateUrl: './recent-files.component.html'
|
||||
@@ -49,6 +50,7 @@ export class RecentFilesComponent extends PageComponent implements OnInit, OnDes
|
||||
private router: Router,
|
||||
private route: ActivatedRoute,
|
||||
private content: ContentManagementService,
|
||||
public permission: NodePermissionService,
|
||||
preferences: UserPreferencesService) {
|
||||
super(preferences);
|
||||
|
||||
|
Reference in New Issue
Block a user