Skip to content

Commit 2f3dbbb

Browse files
authored
Merge pull request #26 from JoKronk/mod-support
Fix hardcoded version warning
2 parents 14d1cd9 + 40e7664 commit 2f3dbbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/settings-components/install/install.component.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
<table mat-table [dataSource]="clientReleaseSource" multiTemplateDataRows>
1616
<ng-container matColumnDef="download">
1717
<th mat-header-cell *matHeaderCellDef> </th>
18-
<td mat-cell *matCellDef="let release">
18+
<td mat-cell *matCellDef="let release; let index = dataIndex;">
1919
<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">
2020
<g>
2121
<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)"/>
2222
<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"/>
2323
</g>
2424
</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">
2626
<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"/>
2727
</svg>
2828
<div *ngIf="release.name == clientVersion">
@@ -59,14 +59,14 @@
5959
<table mat-table [dataSource]="gameReleaseSource" multiTemplateDataRows>
6060
<ng-container matColumnDef="download">
6161
<th mat-header-cell *matHeaderCellDef> </th>
62-
<td mat-cell *matCellDef="let release">
62+
<td mat-cell *matCellDef="let release; let index = dataIndex;">
6363
<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">
6464
<g>
6565
<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)"/>
6666
<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"/>
6767
</g>
6868
</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">
7070
<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"/>
7171
</svg>
7272
<div *ngIf="release.name == _user.user.gameVersion">

0 commit comments

Comments
 (0)