---
This commit is contained in:
@@ -306,16 +306,23 @@ export default {
|
||||
return '';
|
||||
}
|
||||
|
||||
// Check if our club's team won or lost
|
||||
const home = Number(match.homeMatchPoints);
|
||||
const guest = Number(match.guestMatchPoints);
|
||||
|
||||
// Beteiligung unseres Vereins prüfen
|
||||
const isOurTeamHome = this.isOurTeam(match.homeTeam?.name);
|
||||
const isOurTeamGuest = this.isOurTeam(match.guestTeam?.name);
|
||||
const isOurMatch = isOurTeamHome || isOurTeamGuest;
|
||||
|
||||
// Unentschieden: Nur gelb markieren, wenn unser Team beteiligt ist
|
||||
if (!isNaN(home) && !isNaN(guest) && home === guest) {
|
||||
return isOurMatch ? 'completed draw' : 'completed';
|
||||
}
|
||||
|
||||
if (isOurTeamHome) {
|
||||
// We are home team
|
||||
return match.homeMatchPoints > match.guestMatchPoints ? 'completed won' : 'completed lost';
|
||||
return home > guest ? 'completed won' : 'completed lost';
|
||||
} else if (isOurTeamGuest) {
|
||||
// We are guest team
|
||||
return match.guestMatchPoints > match.homeMatchPoints ? 'completed won' : 'completed lost';
|
||||
return guest > home ? 'completed won' : 'completed lost';
|
||||
}
|
||||
|
||||
return 'completed';
|
||||
@@ -879,6 +886,15 @@ td {
|
||||
color: #dc3545;
|
||||
}
|
||||
|
||||
/* Unentschieden: gelb hinterlegen */
|
||||
.result-cell.completed.draw {
|
||||
background-color: #fff3cd;
|
||||
}
|
||||
|
||||
.result-cell.completed.draw .result-score {
|
||||
color: #856404;
|
||||
}
|
||||
|
||||
.hover-info {
|
||||
margin-top: 10px;
|
||||
background-color: #eef;
|
||||
|
||||
Reference in New Issue
Block a user