Skip to content
Snippets Groups Projects
Commit db08dcf9 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14136 TIME 0:30 fix lang in service privilege

parent bcb062ae
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,8 @@
<mat-list-item *ngFor="let menu of privilegeService.getMenus() | sortBy: 'label'">
<mat-slide-toggle color="primary" name="{{menu.label}}"
[checked]="group.privileges.indexOf(menu.id) > -1"
(change)="toggleService($event,menu)" matTooltip="{{menu.comment}}">
{{menu.label}}</mat-slide-toggle>
(change)="toggleService($event,menu)" matTooltip="{{menu.comment | translate}}">
{{menu.label | translate}}</mat-slide-toggle>
</mat-list-item>
</mat-list>
</mat-tab>
......@@ -73,7 +73,7 @@
<mat-slide-toggle color="primary" name="{{administration.label}}" [(ngModel)]="administration.checked"
[checked]="administration.checked"
(change)="toggleService($event,administration)"
matTooltip="{{administration.comment}}">{{administration.label}}
matTooltip="{{administration.comment | translate}}">{{administration.label | translate}}
</mat-slide-toggle>
<button mat-icon-button [class.active]="panelMode === administration.id"
*ngIf="administration.hasParams"
......@@ -103,7 +103,7 @@
<mat-slide-toggle color="primary" name="{{privilege.label}}"
[checked]="group.privileges.indexOf(privilege.id) > -1"
(change)="toggleService($event,privilege)"
matTooltip="{{privilege.comment}}">{{privilege.label}}
matTooltip="{{privilege.comment | translate}}">{{privilege.label | translate}}
</mat-slide-toggle>
</mat-list-item>
</mat-list>
......@@ -118,7 +118,7 @@
(selectionChange)="changeDifflistPrivilege($event, fakePrivilege.id)">
<mat-option value="">{{'lang.noRole' | translate}}</mat-option>
<mat-option *ngFor="let subservice of fakePrivilege.services"
[value]="subservice.id">{{subservice.label}}</mat-option>
[value]="subservice.id">{{subservice.label | translate}}</mat-option>
</mat-select>
</mat-form-field>.
</mat-list-item>
......@@ -133,7 +133,7 @@
(selectionChange)="changePersonalDataPrivilege($event)">
<mat-option value="">{{'lang.notVisible' | translate}}</mat-option>
<mat-option *ngFor="let subservice of fakePrivilege.services"
[value]="subservice.id">{{subservice.label}}</mat-option>
[value]="subservice.id">{{subservice.label | translate}}</mat-option>
</mat-select>
</mat-form-field>.
</mat-list-item>
......
......@@ -25,7 +25,7 @@
<i class="{{shortcut.style}}" style="position: absolute;"></i>
</div>
<span style="font-size: 40px;">{{shortcut.count}}</span>&nbsp;
{{shortcut.label}}
{{shortcut.label | translate}}
</mat-card>
</div>
<mat-divider></mat-divider>
......@@ -35,14 +35,14 @@
<div
style="margin: 20px;display: grid;grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));gap: 20px;padding:20px;padding-top:0px;margin-top:0px;">
<button [joyrideStep]="administration.id" mat-button *ngFor="let administration of filteredAdministrations | async | sortBy : 'label'"
[title]="administration.comment" style="font-size:20px;height:80px;"
[title]="administration.comment | translate" style="font-size:20px;height:80px;"
(click)="goToSpecifiedAdministration(administration)">
<div style="display: flex;align-items: center;">
<span style="padding-right: 10px;">
<i class="avatarCount2 {{administration.style}}"></i>
</span>
<span class="countLabel" style="white-space: initial;text-align: left;">
{{administration.label}}
{{administration.label | translate}}
</span>
</div>
</button>
......
......@@ -4,7 +4,7 @@
<div class="button-row" style="padding-left: 10px;padding-right: 10px;display: flex;width: 300px;margin-top: -10px;margin-bottom: 10px;">
<ng-container *ngFor="let shortcut of privilegeService.shortcuts">
<span style="flex:1;text-align: left;padding: 5px;" *ngIf="(shortcut.id == 'indexing' && shortcut.groups.length<=1) || (shortcut.id != 'indexing')">
<button [id]="shortcut.id" class="followedShortcut" style="z-index: 9999;" color="default" mat-fab (click)="gotToMenu(shortcut);" matTooltip="{{shortcut.label}}"
<button [id]="shortcut.id" class="followedShortcut" style="z-index: 9999;" color="default" mat-fab (click)="gotToMenu(shortcut);" matTooltip="{{shortcut.label | translate}}"
matTooltipPosition="above">
<mat-icon class="fa {{shortcut.style}}" style="height:auto;font-size:22px;"
matBadge="{{headerService.nbResourcesFollowed}}" matBadgeHidden="{{shortcut.id != 'followed'}}"
......
......@@ -14,7 +14,6 @@ import { HeaderService } from '../../service/header.service';
})
export class MenuShortcutComponent implements OnInit {
router: any;
dialogRef: MatDialogRef<any>;
config: any = {};
......@@ -56,7 +55,6 @@ export class MenuShortcutComponent implements OnInit {
styles: ['.mat-dialog-content{max-height: 65vh;width:600px;}']
})
export class IndexingGroupModalComponent {
constructor(
public http: HttpClient,
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment