|
15 | 15 | <table mat-table [dataSource]="clientReleaseSource" multiTemplateDataRows>
|
16 | 16 | <ng-container matColumnDef="download">
|
17 | 17 | <th mat-header-cell *matHeaderCellDef> </th>
|
18 |
| - <td mat-cell *matCellDef="let release"> |
| 18 | + <td mat-cell *matCellDef="let release; let index = dataIndex;"> |
19 | 19 | <svg *ngIf="release.name !== clientVersion" matTooltip="Download" matTooltipPosition="below" class="download" (click)="installClient(release.tag_name)" version="1.1" viewBox="-0.5 -0.5 113 98">
|
20 | 20 | <g>
|
21 | 21 | <path d="M 21 19.95 L 57 19.95 L 57 0 L 91 35 L 57 70 L 57 50.05 L 21 50.05 L 21 35 Z" transform="rotate(90,56,35)"/>
|
22 | 22 | <path class="download-lower" d="M 6 50 L 6 80 Q 6 90 16 90 L 96 90 Q 106 90 106 80 L 106 50" fill="none" stroke-width="12" stroke-miterlimit="10"/>
|
23 | 23 | </g>
|
24 | 24 | </svg>
|
25 |
| - <svg *ngIf="release.name !== 'v0.9.3' && release.name !== clientVersion" matTooltip="Installing outdated launchers may cause compatibility issues!" matTooltipPosition="below" class="warning" fill="red" viewBox="0 0 16 16"> |
| 25 | + <svg *ngIf="index !== 0 && release.name !== clientVersion" matTooltip="Installing outdated launchers may cause compatibility issues!" matTooltipPosition="below" class="warning" fill="red" viewBox="0 0 16 16"> |
26 | 26 | <path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5m.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>
|
27 | 27 | </svg>
|
28 | 28 | <div *ngIf="release.name == clientVersion">
|
|
59 | 59 | <table mat-table [dataSource]="gameReleaseSource" multiTemplateDataRows>
|
60 | 60 | <ng-container matColumnDef="download">
|
61 | 61 | <th mat-header-cell *matHeaderCellDef> </th>
|
62 |
| - <td mat-cell *matCellDef="let release"> |
| 62 | + <td mat-cell *matCellDef="let release; let index = dataIndex;"> |
63 | 63 | <svg *ngIf="release.name !== _user.user.gameVersion" matTooltip="Download" matTooltipPosition="below" class="download" (click)="installGameVersion(release.name)" version="1.1" viewBox="-0.5 -0.5 113 98">
|
64 | 64 | <g>
|
65 | 65 | <path d="M 21 19.95 L 57 19.95 L 57 0 L 91 35 L 57 70 L 57 50.05 L 21 50.05 L 21 35 Z" transform="rotate(90,56,35)"/>
|
66 | 66 | <path class="download-lower" d="M 6 50 L 6 80 Q 6 90 16 90 L 96 90 Q 106 90 106 80 L 106 50" fill="none" stroke-width="12" stroke-miterlimit="10"/>
|
67 | 67 | </g>
|
68 | 68 | </svg>
|
69 |
| - <svg *ngIf="release.name !== 'v0.1.6' && release.name !== _user.user.gameVersion" matTooltip="Installing outdated game versions may cause compatibility issues!" matTooltipPosition="below" class="warning" fill="red" viewBox="0 0 16 16"> |
| 69 | + <svg *ngIf="index !== 0 && release.name !== _user.user.gameVersion" matTooltip="Installing outdated game versions may cause compatibility issues!" matTooltipPosition="below" class="warning" fill="red" viewBox="0 0 16 16"> |
70 | 70 | <path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5m.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>
|
71 | 71 | </svg>
|
72 | 72 | <div *ngIf="release.name == _user.user.gameVersion">
|
|
0 commit comments