Now the ✕ button works
This commit is contained in:
parent
d7d67b274b
commit
d4ca148ac6
@ -269,7 +269,17 @@ function ProcessesViewer({ processes, myProcesses, onProcessesUpdate }: Processe
|
|||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
className="text-sm text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-100"
|
className="text-sm text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-100"
|
||||||
onClick={(e) => { e.stopPropagation(); setEditingField({ processId, stateId, key, value }); }}
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
if (isEditing) {
|
||||||
|
// Fermer le mode édition
|
||||||
|
setEditingField(null);
|
||||||
|
setTempValue(null);
|
||||||
|
} else {
|
||||||
|
// Ouvrir le mode édition
|
||||||
|
setEditingField({ processId, stateId, key, value });
|
||||||
|
}
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{isEditing ? '✕' : '🔄'}
|
{isEditing ? '✕' : '🔄'}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user