diff --git a/src/app/components/favorites/favorites.component.html b/src/app/components/favorites/favorites.component.html index 37679d231..d8369726a 100644 --- a/src/app/components/favorites/favorites.component.html +++ b/src/app/components/favorites/favorites.component.html @@ -50,40 +50,35 @@ more_vert + [overlapTrigger]="false"> @@ -91,7 +86,7 @@ mat-menu-item *ngIf="isFileSelected(documentList.selection)" [acaNodeVersions]="documentList.selection"> - history + history {{ 'APP.ACTIONS.VERSIONS' | translate }} diff --git a/src/app/components/files/files.component.html b/src/app/components/files/files.component.html index 8107da7fd..439f6ca0f 100644 --- a/src/app/components/files/files.component.html +++ b/src/app/components/files/files.component.html @@ -54,25 +54,20 @@ + [overlapTrigger]="false"> @@ -80,7 +75,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection, ['delete'])" [acaMoveNode]="documentList.selection"> - library_books + library_books {{ 'APP.ACTIONS.MOVE' | translate }} @@ -88,7 +83,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection, ['delete'])" [acaDeleteNode]="documentList.selection"> - delete + delete {{ 'APP.ACTIONS.DELETE' | translate }} @@ -96,7 +91,7 @@ mat-menu-item *ngIf="isFileSelected(documentList.selection)" [acaNodeVersions]="documentList.selection"> - history + history {{ 'APP.ACTIONS.VERSIONS' | translate }} diff --git a/src/app/components/header/header.component.html b/src/app/components/header/header.component.html index 1e033fe0a..867174369 100644 --- a/src/app/components/header/header.component.html +++ b/src/app/components/header/header.component.html @@ -1,6 +1,9 @@ - + - diff --git a/src/app/components/header/header.component.spec.ts b/src/app/components/header/header.component.spec.ts index c32d91cfc..468d3f63d 100644 --- a/src/app/components/header/header.component.spec.ts +++ b/src/app/components/header/header.component.spec.ts @@ -26,11 +26,12 @@ import { NO_ERRORS_SCHEMA } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; -import { AppConfigService, PeopleContentService } from '@alfresco/adf-core'; +import { AppConfigService, PeopleContentService, TranslationService, TranslationMock } from '@alfresco/adf-core'; import { HttpClientModule } from '@angular/common/http'; import { Observable } from 'rxjs/Rx'; import { HeaderComponent } from './header.component'; +import { TranslateModule } from '@ngx-translate/core'; describe('HeaderComponent', () => { let fixture; @@ -41,14 +42,16 @@ describe('HeaderComponent', () => { TestBed.configureTestingModule({ imports: [ HttpClientModule, - RouterTestingModule + RouterTestingModule, + TranslateModule.forRoot(), ], declarations: [ HeaderComponent ], providers: [ AppConfigService, - PeopleContentService + PeopleContentService, + { provide: TranslationService, useClass: TranslationMock }, ], schemas: [ NO_ERRORS_SCHEMA ] }) diff --git a/src/app/components/recent-files/recent-files.component.html b/src/app/components/recent-files/recent-files.component.html index e20c81d00..83102ad7f 100644 --- a/src/app/components/recent-files/recent-files.component.html +++ b/src/app/components/recent-files/recent-files.component.html @@ -41,25 +41,20 @@ + [overlapTrigger]="false"> @@ -67,7 +62,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection, ['delete'])" [acaMoveNode]="documentList.selection"> - library_books + library_books {{ 'APP.ACTIONS.MOVE' | translate }} @@ -75,7 +70,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection, ['delete'])" [acaDeleteNode]="documentList.selection"> - delete + delete {{ 'APP.ACTIONS.DELETE' | translate }} @@ -83,7 +78,7 @@ mat-menu-item *ngIf="isFileSelected(documentList.selection)" [acaNodeVersions]="documentList.selection"> - history + history {{ 'APP.ACTIONS.VERSIONS' | translate }} diff --git a/src/app/components/shared-files/shared-files.component.html b/src/app/components/shared-files/shared-files.component.html index 9bbf5a8de..15c563421 100644 --- a/src/app/components/shared-files/shared-files.component.html +++ b/src/app/components/shared-files/shared-files.component.html @@ -40,25 +40,20 @@ + [overlapTrigger]="false"> @@ -66,7 +61,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection, ['delete'], { target: 'allowableOperationsOnTarget' })" [acaMoveNode]="documentList.selection"> - library_books + library_books {{ 'APP.ACTIONS.MOVE' | translate }} @@ -75,7 +70,7 @@ *ngIf="permission.check(documentList.selection, ['delete'])" [acaUnshareNode]="documentList.selection" (links-unshared)="refresh()"> - stop_screen_share + stop_screen_share {{ 'APP.ACTIONS.UNSHARE' | translate }} @@ -83,7 +78,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection, ['delete'], { target: 'allowableOperationsOnTarget' })" [acaDeleteNode]="documentList.selection"> - delete + delete {{ 'APP.ACTIONS.DELETE' | translate }} @@ -91,7 +86,7 @@ mat-menu-item *ngIf="permission.check(documentList.selection[0], ['update'], { target: 'allowableOperationsOnTarget' })" [acaNodeVersions]="documentList.selection"> - history + history {{ 'APP.ACTIONS.VERSIONS' | translate }} diff --git a/src/app/components/sidenav/sidenav.component.html b/src/app/components/sidenav/sidenav.component.html index 174af8aa7..87708b9db 100644 --- a/src/app/components/sidenav/sidenav.component.html +++ b/src/app/components/sidenav/sidenav.component.html @@ -3,7 +3,7 @@ arrow_drop_down
- queue + queue