This commit is contained in:
2020-12-19 15:38:43 +01:00
parent a80d3b060f
commit 8ff1c55ba4
8 changed files with 43 additions and 61 deletions

View File

@@ -1,10 +1,11 @@
<script>
import { OpenAPI, TrackService } from "@odit/lfk-client-js";
OpenAPI.BASE = "http://localhost:4010";
import { _ } from "svelte-i18n";
import store from "../store.js";
import { TrackService } from "@odit/lfk-client-js";
let tracks_promise = TrackService.trackControllerGetAll();
</script>
<h1>Tracks</h1>
<h1>$_("tracks")</h1>
{#await tracks_promise}
<div
class="bg-teal-lightest border-t-4 border-teal rounded-b text-teal-darkest px-4 py-3 shadow-md my-2"
@@ -14,7 +15,6 @@
</div>
{:then tracks}
{#if tracks.length > 0}
<!-- content here -->
<h4>{tracks.length}</h4>
<hr />
<ul>