Aktualisiert die Token-Lebensdauer im Authentifizierungsdienst auf 3 Stunden und verbessert die Logik zur Auswahl der Startposition im CourtDrawingTool.vue, um eine Standard-Startposition festzulegen, wenn keine ausgewählt ist.
This commit is contained in:
@@ -552,7 +552,7 @@ export default {
|
||||
|
||||
positions.forEach(pos => {
|
||||
const isSelected = this.targetPosition === pos.number.toString();
|
||||
const isTargetSelected = this.targetPosition !== '';
|
||||
const isTargetSelected = this.targetPosition !== '' && this.targetPosition !== null;
|
||||
|
||||
// Transparenz für nicht-ausgewählte Kreise wenn ein Target ausgewählt ist
|
||||
if (isTargetSelected && !isSelected) {
|
||||
@@ -890,6 +890,13 @@ export default {
|
||||
const clickedTarget = this.checkTargetPositionClick(clickX, clickY);
|
||||
if (clickedTarget) {
|
||||
this.targetPosition = clickedTarget;
|
||||
|
||||
// Wenn keine Startposition ausgewählt ist, setze eine Standard-Startposition
|
||||
if (!this.selectedStartPosition) {
|
||||
this.selectedStartPosition = 'AS';
|
||||
this.selectedCirclePosition = 'middle';
|
||||
}
|
||||
|
||||
this.drawCourt(); // Neu zeichnen für Zielposition-Hervorhebung
|
||||
this.updateTextFields();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user