Remove delete functionality from vehicles and buildings

- Remove DELETE endpoints for vehicles and buildings from api.py
- Remove delete_vehicle() method from vehicle service
- Remove delete buttons from vehicles.html and buildings.html
This commit is contained in:
Reditus committed 2026-05-19 05:56:27 +01:00
1 parent 6e7a850ba2
commit e977f8cd5b
4 files changed
+2 -71

No files matched your search

-1
View File
@@ -38,7 +38,6 @@
<td>{% if b.is_powered == 'True' %}<span class="badge badge-online">Powered</span>{% elif b.is_powered == 'False' %}<span class="badge" style="background:#666;color:#fff;">Unpowered</span>{% else %}?{% endif %}</td>
<td>{{ b.instance_count }}</td>
<td style="font-size:11px;font-family:monospace;max-width:200px;word-break:break-all;">{{ b.transform_text or '' }}</td>
<td><button class="btn-delete" data-id="{{ b.id }}" data-type="building" title="Delete">🗑️</button></td>
</tr>
{% else %}
<tr><td colspan="8" class="empty">No buildings found</td></tr>