[ADF-3822] Add Create Library button on mobile view (#4106)

This commit is contained in:
davidcanonieto 2019-01-02 21:39:06 +01:00 committed by Eugenio Romano
parent 06e45bb29e
commit 21710cfcff
2 changed files with 7 additions and 1 deletions

View File

@ -143,7 +143,8 @@
"THEME": "Select a theme", "THEME": "Select a theme",
"SHOW_VERSION": "Show version", "SHOW_VERSION": "Show version",
"HIDE_VERSION": "Hide version", "HIDE_VERSION": "Hide version",
"LISTVIEW": "List view mode" "LISTVIEW": "List view mode",
"CREATE_LIBRARY": "Create Library"
}, },
"ACTIONS": { "ACTIONS": {
"VERSIONS": "Manage versions", "VERSIONS": "Manage versions",

View File

@ -173,6 +173,11 @@
<mat-icon>create_new_folder</mat-icon> <mat-icon>create_new_folder</mat-icon>
<span>{{ 'DOCUMENT_LIST.TOOLBAR.NEW_FOLDER' | translate }}</span> <span>{{ 'DOCUMENT_LIST.TOOLBAR.NEW_FOLDER' | translate }}</span>
</button> </button>
<button mat-menu-item
(click)="createLibrary()">
<mat-icon>library_add</mat-icon>
<span>{{ 'DOCUMENT_LIST.TOOLBAR.CREATE_LIBRARY' | translate }}</span>
</button>
<button mat-menu-item <button mat-menu-item
[disabled]="!canEditFolder(documentList.selection)" [disabled]="!canEditFolder(documentList.selection)"
(error)="openSnackMessage($event)" (error)="openSnackMessage($event)"