Skip to content

Commit 2ca6c47

Browse files
refactor(ui): remove possibility to downloads centroids
1 parent 428adb2 commit 2ca6c47

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { getUUIDFromURL, poll, handleMainMessage } from "../shared";
22

33
const vectorResultsUrl = `/api/status/${getUUIDFromURL()}/vector-results`;
4-
const centroidsResultsUrl = `/api/status/${getUUIDFromURL()}/centroid-results`;
54
const rasterResultsUrl = `/api/status/${getUUIDFromURL()}/raster-results`;
65

76
Promise.all([
87
poll(rasterResultsUrl, "raster-data"),
98
poll(vectorResultsUrl, "vector-data"),
10-
poll(centroidsResultsUrl, "centroid-data"),
119
]).then(handleMainMessage);

sketch_map_tool/templates/digitize-results.html.jinja

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,8 @@
7878
<p class="error hidden">
7979
{{ _('Sorry! <br>Something went wrong while trying to generate the Result.') }}
8080
</p>
81-
<p>
82-
<a id="vector-data-download-button" href="#" download aria-busy="true" role="button" disabled="disabled">{{ _('Download Markings') }}</a>
83-
</p>
84-
<a id="centroid-data-download-button" class="outline" href="#" download aria-busy="true" role="button" disabled="disabled">{{ _('Download Point GeoJSON') }}</a>
81+
<a id="vector-data-download-button" href="#" download aria-busy="true" role="button" disabled="disabled">{{ _('Download Markings') }}</a>
8582
<div id="vector-data-status" class="task-status"></div>
86-
<br>
87-
<!-- JS polling function expects a status span for every request type. -->
88-
<div id="centroid-data-status" style="display: none;"></div>
8983
</article>
9084
</div>
9185
</div>

0 commit comments

Comments
 (0)