añadido soporte para descripcion de coordenadas
This commit is contained in:
@@ -51,7 +51,7 @@ export default function Keeper({ tipo }) {
|
||||
|
||||
const Compartir = (coord) => {
|
||||
setCoord(coord);
|
||||
const textToCopy = `X: ${coord.x}${coord.y ? ` Y: ${coord.y}` : ""} Z: ${coord.z}`;
|
||||
const textToCopy = `- ${coord.descripcion}, X: ${coord.x}${coord.y ? ` Y: ${coord.y}` : ""} Z: ${coord.z}`;
|
||||
navigator.clipboard.writeText(textToCopy);
|
||||
setShowToast(true);
|
||||
};
|
||||
@@ -91,7 +91,7 @@ export default function Keeper({ tipo }) {
|
||||
durationMs={5000}
|
||||
setShow={setShowToast}
|
||||
show={showToast}
|
||||
message={`Copiada Coordenada ${selCoord?.num}`}
|
||||
message={`Copiada Coordenada [${selCoord?.descripcion}]`}
|
||||
/>
|
||||
|
||||
<div className="accordion" id="accordionNuevaCoord">
|
||||
@@ -142,6 +142,7 @@ export default function Keeper({ tipo }) {
|
||||
<th>X:</th>
|
||||
<th>Y:</th>
|
||||
<th>Z:</th>
|
||||
<th>Descripcion</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -156,6 +157,7 @@ export default function Keeper({ tipo }) {
|
||||
<td>{x.x}</td>
|
||||
<td>{x.y !== null && `Y: ${x.y}`}</td>
|
||||
<td>{x.z}</td>
|
||||
<td>{x.descripcion}</td>
|
||||
<td>
|
||||
<button
|
||||
class="ms-2 btn btn-outline-warning btn-sm"
|
||||
|
||||
Reference in New Issue
Block a user