reiniciar por room, finished ya no estorba, control total desde el dashboard
This commit is contained in:
@@ -110,6 +110,13 @@
|
||||
<option value="G5">G5</option>
|
||||
</select>
|
||||
</div>
|
||||
<button
|
||||
@click="$emit('restartRoom', room.roomId)"
|
||||
class="btn btn-restart"
|
||||
title="Reiniciar estado (mantiene variante)"
|
||||
>
|
||||
🔄 Reiniciar
|
||||
</button>
|
||||
<button
|
||||
@click="$emit('closeRoom', room.roomId)"
|
||||
class="btn btn-close"
|
||||
@@ -168,6 +175,7 @@ defineEmits<{
|
||||
viewRoomModal: [roomId: string];
|
||||
closeRoom: [roomId: string];
|
||||
changeVariant: [roomId: string, variant: string];
|
||||
restartRoom: [roomId: string];
|
||||
}>();
|
||||
|
||||
function getRoomDetails(roomId: string) {
|
||||
@@ -279,6 +287,19 @@ function getReadableTextColor(hex?: string): string {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-restart {
|
||||
background: #1976d2;
|
||||
color: white;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.btn-restart:hover {
|
||||
background: #1565c0;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.variant-selector-container {
|
||||
display: inline-block;
|
||||
margin: 0 4px;
|
||||
@@ -528,4 +549,4 @@ function getReadableTextColor(hex?: string): string {
|
||||
max-width: 150px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -160,6 +160,7 @@
|
||||
@view-room-modal="openRoomModal"
|
||||
@close-room="closeRoom"
|
||||
@change-variant="changeRoomVariant"
|
||||
@restart-room="restartRoom"
|
||||
/>
|
||||
|
||||
<!-- Cards View -->
|
||||
|
||||
Reference in New Issue
Block a user