cleanup invalid track stuff (leftovers from scanclient)
This commit is contained in:
parent
80f5c38c36
commit
c485898b7d
5995
licenses.md
5995
licenses.md
File diff suppressed because it is too large
Load Diff
|
@ -112,37 +112,6 @@
|
||||||
>{$_("configure")}</button
|
>{$_("configure")}</button
|
||||||
>
|
>
|
||||||
</form>
|
</form>
|
||||||
{:else if $api_endpoint && $apikey}
|
|
||||||
<form
|
|
||||||
class="flex flex-col pt-3 md:pt-8"
|
|
||||||
onsubmit="event.preventDefault();"
|
|
||||||
on:submit={() => {
|
|
||||||
laptime_track.set(track);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div class="flex flex-col pt-4">
|
|
||||||
<label for="track" class="text-lg">{$_("track_id")}</label>
|
|
||||||
<input
|
|
||||||
type="number"
|
|
||||||
id="track"
|
|
||||||
placeholder="Track"
|
|
||||||
bind:value={track}
|
|
||||||
class:border-red-500={!isTokenValid}
|
|
||||||
class:border-solid={!isTokenValid}
|
|
||||||
class:border-3={!isTokenValid}
|
|
||||||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mt-1 leading-tight focus:outline-none focus:shadow-outline"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
disabled={!track}
|
|
||||||
class:cursor-pointer={track}
|
|
||||||
class:opacity-50={!track}
|
|
||||||
id="configure"
|
|
||||||
type="submit"
|
|
||||||
class="bg-black text-white font-bold text-lg hover:bg-gray-700 p-2 mt-8 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black"
|
|
||||||
>{$_("configure")}</button
|
|
||||||
>
|
|
||||||
</form>
|
|
||||||
{:else}
|
{:else}
|
||||||
<form
|
<form
|
||||||
class="flex flex-col pt-3 md:pt-8"
|
class="flex flex-col pt-3 md:pt-8"
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
<p class="block text-sm text-gray-700">{$api_endpoint}</p>
|
<p class="block text-sm text-gray-700">{$api_endpoint}</p>
|
||||||
<p class="block text-sm font-bold text-gray-700 mt-2">{$_("api_key")}</p>
|
<p class="block text-sm font-bold text-gray-700 mt-2">{$_("api_key")}</p>
|
||||||
<p class="block text-sm text-gray-700">{$apikey}</p>
|
<p class="block text-sm text-gray-700">{$apikey}</p>
|
||||||
<p class="block text-sm font-bold text-gray-700 mt-2">{$_("track_id")}</p>
|
|
||||||
<p class="block text-sm text-gray-700">{$laptime_track}</p>
|
|
||||||
<p class="block text-sm font-bold text-gray-700 mt-2">{$_("language")}</p>
|
<p class="block text-sm font-bold text-gray-700 mt-2">{$_("language")}</p>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<div class="inline-block mr-2 mt-2">
|
<div class="inline-block mr-2 mt-2">
|
||||||
|
|
Loading…
Reference in New Issue