update to API screenshot changes

This commit is contained in:
axolotle 2022-12-04 14:42:41 +01:00
parent f24e0158af
commit 81cdebde45

View file

@ -11,8 +11,8 @@
<vue-showdown :markdown="app.description" flavor="github" /> <vue-showdown :markdown="app.description" flavor="github" />
<b-img <b-img
v-if="app.image" v-if="app.screenshot"
:src="app.image" :src="app.screenshot"
aria-hidden="true" class="d-block mb-3" fluid aria-hidden="true" class="d-block mb-3" fluid
/> />
@ -168,7 +168,7 @@ export default {
return { return {
queries: [ queries: [
['GET', 'apps/catalog?full&with_categories&with_antifeatures'], ['GET', 'apps/catalog?full&with_categories&with_antifeatures'],
['GET', 'apps/manifest?app=' + this.id] ['GET', `apps/manifest?app=${this.id}&with_screenshot`]
], ],
app: undefined, app: undefined,
name: undefined, name: undefined,
@ -221,7 +221,7 @@ export default {
? _app.potential_alternative_to.join(this.$i18n.t('words.separator')) ? _app.potential_alternative_to.join(this.$i18n.t('words.separator'))
: null, : null,
description: formatI18nField(_app.doc.DESCRIPTION || _app.description), description: formatI18nField(_app.doc.DESCRIPTION || _app.description),
image: _app.image, screenshot: _app.screenshot,
demo: _app.upstream.demo, demo: _app.upstream.demo,
version, version,
license: _app.upstream.license, license: _app.upstream.license,