Update webassets/js/add-spot.js

This commit is contained in:
ian
2026-06-13 08:24:30 +00:00
parent fd21e01c9d
commit b81f5eeb5a

View File

@@ -4,6 +4,7 @@ var PROVIDER_CREDENTIAL_SCHEMAS = {
// see e.g. https://github.com/ham2k/app-polo/blob/main/src/extensions/activities/sota/SOTAAccount.jsx
// https://github.com/ham2k/app-polo/blob/main/src/store/apis/apiSOTA/apiSOTA.js
// Refresh token? Way to show user that they need to log in again because cached credentials aren't valid?
// todo type: text/password distinction on text boxes so API keys can be obscured
"SOTA": [
{ key: "access_token", label: "SOTA Access Token", help: "" },
{ key: "id_token", label: "SOTA ID Token", help: "TODO SOTA authentication to provide this..." }
@@ -202,6 +203,7 @@ function addSpot() {
if (dx != "") {
spot["dx_call"] = dx;
} else {
// todo maybe for neatness just make all these error/rejections server side rather than having logic in two places
showAddSpotError("A DX callsign is required in order to spot.");
return;
}