mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-06-24 05:35:10 +00:00
Update webassets/js/add-spot.js
This commit is contained in:
@@ -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
|
// 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
|
// 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?
|
// 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": [
|
"SOTA": [
|
||||||
{ key: "access_token", label: "SOTA Access Token", help: "" },
|
{ key: "access_token", label: "SOTA Access Token", help: "" },
|
||||||
{ key: "id_token", label: "SOTA ID Token", help: "TODO SOTA authentication to provide this..." }
|
{ key: "id_token", label: "SOTA ID Token", help: "TODO SOTA authentication to provide this..." }
|
||||||
@@ -202,6 +203,7 @@ function addSpot() {
|
|||||||
if (dx != "") {
|
if (dx != "") {
|
||||||
spot["dx_call"] = dx;
|
spot["dx_call"] = dx;
|
||||||
} else {
|
} 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.");
|
showAddSpotError("A DX callsign is required in order to spot.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user