mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-06-24 05:35:10 +00:00
Implement spotting to Tiles on the Air. #95
This commit is contained in:
@@ -15,6 +15,9 @@ var PROVIDER_CREDENTIAL_SCHEMAS = {
|
||||
"ZLOTA": [
|
||||
{ key: "user_id", label: "ZLOTA User ID", help: "" },
|
||||
{ key: "api_key", label: "ZLOTA User PIN", help: "Get your PIN from your ZLOTA account." }
|
||||
],
|
||||
"Tiles": [
|
||||
{ key: "offline_spot_gateway_pin", label: "Offline Spot Gateway PIN", help: "Get your PIN from your Tiles on the Air account profile." }
|
||||
]
|
||||
};
|
||||
|
||||
@@ -239,10 +242,18 @@ function addSpot() {
|
||||
showAddSpotError("A SIG must be selected to submit upstream.");
|
||||
return;
|
||||
}
|
||||
if (!sigRef) {
|
||||
if (!sigRef && upstreamProviderName !== "Tiles") {
|
||||
showAddSpotError("A SIG reference is required to submit upstream.");
|
||||
return;
|
||||
}
|
||||
if (!dxGrid && upstreamProviderName === "Tiles") {
|
||||
showAddSpotError("A grid reference is required to submit upstream to Tiles on the Air.");
|
||||
return;
|
||||
}
|
||||
if (!mode && upstreamProviderName === "Tiles") {
|
||||
showAddSpotError("A mode is required to submit upstream to Tiles on the Air.");
|
||||
return;
|
||||
}
|
||||
|
||||
var creds = loadCredentials(upstreamProviderName);
|
||||
spot["submit_upstream"] = true;
|
||||
|
||||
Reference in New Issue
Block a user