Skip to content

Commit

Permalink
fix(frontend): display chapter number instead of random number
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 2, 2024
1 parent f34ab07 commit 4879015
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Mangarr.Frontend/Pages/Manga/Item/ContentList.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ else
</tr>
</thead>
<tbody>
@for (int i = 0; i < Items.Count; i++)
@foreach (MangaChapterModel item in Items)
{
MangaChapterModel item = Items[i];
<ContentListItem Item="@item" Index="@(Items.Count - i)"/>
<ContentListItem Item="@item"/>
}
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</svg>
}
</td>
<td>@Index</td>
<td>@ChapterNumber</td>
<td>
<a href="@ChapterUrl">@ChapterName</a>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ namespace Mangarr.Frontend.Pages.Manga.Item;
public partial class ContentListItem
{
[Parameter] public MangaChapterModel? Item { get; set; }
[Parameter] public int Index { get; set; }

private string ChapterUrl => Item!.ChapterUrl;
private string ChapterName => Item!.ChapterName;
Expand Down

0 comments on commit 4879015

Please sign in to comment.