Home
/
browser-rts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow cancelling of training queues
[browser-rts.git]
/
src
/
render
/
land-development.ts
diff --git
a/src/render/land-development.ts
b/src/render/land-development.ts
index e3643a9fc8732bc28d0b1cafcb15217ba43b07b3..d0b5e7f1157460eba318713ce9430a6475e93fb1 100644
(file)
--- a/
src/render/land-development.ts
+++ b/
src/render/land-development.ts
@@
-95,6
+95,9
@@
export function renderLandDevelopment(city: CityWithLocation, buildings: Buildin
<td>${quickFindBuilding[queue.building_type].display}</td>
<td>${queue.amount}</td>
<td>${progressBar(now, duration)}</td>
<td>${quickFindBuilding[queue.building_type].display}</td>
<td>${queue.amount}</td>
<td>${progressBar(now, duration)}</td>
+ <td width="50">
+ <a href="#" hx-post="/construction/${queue.id}/cancel" hx-trigger="click" class="danger-text close" title="Cancel Construction">×</a>
+ </td>
</tr>
`;
}
</tr>
`;
}