|
1 | | -<mat-table #table [dataSource]="communities" matSort [matSortDisableClear]="true"> |
| 1 | +<mat-table #table class="responsive-table" [dataSource]="communities" matSort [matSortDisableClear]="true"> |
2 | 2 | <ng-container matColumnDef="name"> |
3 | 3 | <mat-header-cell *matHeaderCellDef mat-sort-header="name" i18n>Name</mat-header-cell> |
4 | 4 | <mat-cell *matCellDef="let element">{{element.nameDoc?.name || element.doc.name}}</mat-cell> |
|
18 | 18 | <ng-container matColumnDef="action"> |
19 | 19 | <mat-header-cell *matHeaderCellDef i18n>Actions</mat-header-cell> |
20 | 20 | <mat-cell *matCellDef="let element"> |
21 | | - <button mat-raised-button color="primary" (click)="view(element.doc)"><mat-icon>visibility</mat-icon> <span i18n>View</span></button> |
| 21 | + <button mat-raised-button color="primary" (click)="view(element.doc)" i18n-matTooltip matTooltip="View" [matTooltipDisabled]="!isMobile"> |
| 22 | + <mat-icon>visibility</mat-icon> |
| 23 | + <label *ngIf="!isMobile" i18n>View</label> |
| 24 | + </button> |
22 | 25 | <ng-container *ngIf="element.doc.registrationRequest === 'accepted'"> |
23 | | - <button *ngIf="element.doc.planetType === 'nation'" mat-raised-button color="primary" (click)="getChildPlanet(element.doc.localDomain)" i18n> |
24 | | - Communities |
| 26 | + <button *ngIf="element.doc.planetType === 'nation'" mat-raised-button color="primary" (click)="getChildPlanet(element.doc.localDomain)" i18n-matTooltip matTooltip="Communities" [matTooltipDisabled]="!isMobile"> |
| 27 | + <mat-icon>groups</mat-icon> |
| 28 | + <label *ngIf="!isMobile" i18n>Communities</label> |
25 | 29 | </button> |
26 | | - <button mat-raised-button color="primary" i18n [matMenuTriggerFor]="hubMenu" *ngIf="(hub==='sandbox' && hubs.length > 0) || hubs.length > 1"> |
27 | | - { hub, select, |
28 | | - sandbox {Add to { planetType, select, nation {Network} center {Region} }} |
29 | | - other {Move { planetType, select, nation {Networks} center {Regions} }} |
30 | | - } |
| 30 | + <button mat-raised-button color="primary" [matMenuTriggerFor]="hubMenu" *ngIf="(hub==='sandbox' && hubs.length > 0) || hubs.length > 1" |
| 31 | + i18n-matTooltip matTooltip="{ hub, select, sandbox {Add to { planetType, select, nation {Network} center {Region} }} other {Move { planetType, select, nation {Networks} center {Regions} }} }" |
| 32 | + [matTooltipDisabled]="!isMobile"> |
| 33 | + <mat-icon>hub</mat-icon> |
| 34 | + <label *ngIf="!isMobile" i18n> |
| 35 | + { hub, select, |
| 36 | + sandbox {Add to { planetType, select, nation {Network} center {Region} }} |
| 37 | + other {Move { planetType, select, nation {Networks} center {Regions} }} |
| 38 | + } |
| 39 | + </label> |
31 | 40 | </button> |
32 | 41 | <mat-menu #hubMenu="matMenu"> |
33 | 42 | <ng-container *ngFor="let h of hubs"> |
34 | 43 | <button *ngIf="h.name!==hub.name" (click)="addHubClick(element.doc.code, h.name)" mat-menu-item>{{h.name}}</button> |
35 | 44 | </ng-container> |
36 | 45 | <button (click)="removeHubClick(element.doc.code)" *ngIf="hub!=='sandbox'" mat-menu-item i18n>Sandbox</button> |
37 | 46 | </mat-menu> |
38 | | - <button mat-raised-button color="primary" (click)="openEditChildNameDialog(element)" i18n> |
39 | | - Edit Name |
| 47 | + <button mat-raised-button color="primary" (click)="openEditChildNameDialog(element)" i18n-matTooltip matTooltip="Edit Name" [matTooltipDisabled]="!isMobile"> |
| 48 | + <mat-icon>edit</mat-icon> |
| 49 | + <label *ngIf="!isMobile" i18n>Edit Name</label> |
40 | 50 | </button> |
41 | 51 | </ng-container> |
42 | 52 | <ng-container *ngIf="element.doc.registrationRequest === 'pending'"> |
43 | | - <button mat-raised-button color="primary" (click)="updateClick(element, 'accept')"> |
44 | | - <mat-icon>link</mat-icon> <span i18n>Accept</span> |
| 53 | + <button mat-raised-button color="primary" (click)="updateClick(element, 'accept')" i18n-matTooltip matTooltip="Accept" [matTooltipDisabled]="!isMobile"> |
| 54 | + <mat-icon>link</mat-icon> |
| 55 | + <label *ngIf="!isMobile" i18n>Accept</label> |
45 | 56 | </button> |
46 | 57 | </ng-container> |
47 | | - <button mat-raised-button color="warn" (click)="updateClick(element, 'delete')"> |
48 | | - <mat-icon>delete</mat-icon> <span i18n>Delete</span> |
| 58 | + <button mat-raised-button color="warn" (click)="updateClick(element, 'delete')" i18n-matTooltip matTooltip="Delete" [matTooltipDisabled]="!isMobile"> |
| 59 | + <mat-icon>delete</mat-icon> |
| 60 | + <label *ngIf="!isMobile" i18n>Delete</label> |
49 | 61 | </button> |
50 | 62 | </mat-cell> |
51 | 63 | </ng-container> |
|
0 commit comments