Skip to content

Commit c6c5ee8

Browse files
committed
Some minor UI improvements
1 parent c6e6be8 commit c6c5ee8

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A preview of major changes can be found in the Wiki ([Latest Changes](https://gi
1313
#### Fixed
1414
- Issue with the `TTS` gets stuck in certain situations
1515
- Bug where matches were not correctly forwarded back to main screen
16-
16+
- Minor UI improvements
1717

1818
## [2.8.0] - 2024-12-11
1919
#### Feature

routes/tournaments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ router.get('/match/:id/next', function (req, res, next) {
461461
axios.get(`${req.app.locals.kcapp.api}/tournament/match/${req.params.id}/next`)
462462
.then(response => {
463463
if (response.status === 204) {
464-
res.send(204);
464+
res.sendStatus(204);
465465
return;
466466
}
467467
res.send(response.data);

src/components/matches-table/components/match-row/match-row.marko

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ $ var columns = input.columns;
9292
<if(!match.has_scores)>
9393
<td class="text-center">
9494
<match-button title="View" icon="fa-cog" modal=`set-score-modal` data=match.id on-show-modal("onShowModal")/>
95-
<match-button title="Start Remote" icon="fa-fast-forward" modal='start-remote-modal' data=match.id on-show-modal("onShowModal")/>
95+
<if(!match.is_finished)>
96+
<match-button title="Start Remote" icon="fa-fast-forward" modal='start-remote-modal' data=match.id on-show-modal("onShowModal")/>
97+
</if>
9698
</td>
9799
</if>
98100
<else>

src/pages/match-result/components/match-result/match-result.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$ let match = state.match;
22
$ let isOfficial = state.match.tournament_id || false;
3-
<page-header heading=`Match Result (${match.id})` style="block-container" rematch_button=!isOfficial next_match_button=isOfficial subheadings=[
3+
<page-header heading=`Match Result (${match.id})` style="block-container" rematch_button=!isOfficial next_match_button=(isOfficial && !state.match.tournament.is_finished) subheadings=[
44
[
55
{
66
heading: `Started ${match.started}`,
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
<div class="block-container-header">
2-
<i class="fas fa-arrow-alt-circle-down"/>
3-
<span class="ml-10">Options</span>
4-
</div>
5-
<div class="block-container-with-header">
6-
<button class="btn btn-primary" type="button" data-toggle="modal" data-target="#add-player-modal">
7-
<i class="fas fa-user-plus"/>
8-
<span class="ml-10">Add Player</span>
9-
</button>
10-
<button class="btn btn-primary ml-10" type="button" data-toggle="modal" data-target="#generate-playoffs-modal">
11-
<i class="fas fa-plus-square"/>
12-
<span class="ml-10">Generate Playoffs</span>
13-
</button>
14-
</div>
1+
<if(!input.tournament.playoffs_tournament_id)>
2+
<div class="block-container-header">
3+
<i class="fas fa-arrow-alt-circle-down"/>
4+
<span class="ml-10">Options</span>
5+
</div>
6+
<div class="block-container-with-header">
7+
<button class="btn btn-primary" type="button" data-toggle="modal" data-target="#add-player-modal">
8+
<i class="fas fa-user-plus"/>
9+
<span class="ml-10">Add Player</span>
10+
</button>
11+
<button class="btn btn-primary ml-10" type="button" data-toggle="modal" data-target="#generate-playoffs-modal">
12+
<i class="fas fa-plus-square"/>
13+
<span class="ml-10">Generate Playoffs</span>
14+
</button>
15+
</div>
16+
</if>

0 commit comments

Comments
 (0)