replace and clean up methods (#352)

This commit is contained in:
Cilibiu Bogdan
2018-05-10 16:43:58 +03:00
committed by Denys Vuika
parent 3ca63b8433
commit 5dee937cf0
8 changed files with 27 additions and 239 deletions

View File

@@ -7,7 +7,7 @@
<button
color="primary"
mat-icon-button
*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>
@@ -24,7 +24,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>