ability to cancel construction and have a portion of the funds returned
[browser-rts.git] / src / render / land-development.ts
index e3643a9fc8732bc28d0b1cafcb15217ba43b07b3..d0b5e7f1157460eba318713ce9430a6475e93fb1 100644 (file)
@@ -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 width="50">
+        <a href="#" hx-post="/construction/${queue.id}/cancel" hx-trigger="click" class="danger-text close" title="Cancel Construction">&times;</a>
+        </td>
         </tr>
         `;
       }