Vereinheitlichen der API Parameter für Articles und Content Api Methoden. Interfaces etwas angepasst.

This commit is contained in:
2022-06-09 15:06:16 +02:00
parent 9cf3a814e3
commit ddd236af06
5 changed files with 10 additions and 17 deletions

View File

@@ -11,7 +11,6 @@
let loading = true
let content: Content
let connectedContentNotFound: boolean = false
let oldLocation: string
$: currentDomain = window.location.protocol + "//" + window.location.host
const load = (type?: string) => {
@@ -36,8 +35,11 @@
}
// Get content by API call
let apiParams: APIParams = {
filter,
}
loading = true
getContent(filter)
getContent(apiParams)
.then((c) => {
if (c) {
if (type === "changedLanguage") {