mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 23:27:46 -04:00
Only load screenshots if available from app store releases
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
ee32c7c328
commit
c9656eff06
6 changed files with 8 additions and 8 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -144,7 +144,7 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.isSelected = (this.app.id === this.$route.params.id)
|
||||
if (this.app.screenshot) {
|
||||
if (this.app.releases && this.app.screenshot) {
|
||||
const image = new Image()
|
||||
image.onload = (e) => {
|
||||
this.screenshotLoaded = true
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ export default {
|
|||
|
||||
app() {
|
||||
this.screenshotLoaded = false
|
||||
if (this.app && this.app.screenshot) {
|
||||
if (this.app?.releases && this.app?.screenshot) {
|
||||
const image = new Image()
|
||||
image.onload = (e) => {
|
||||
this.screenshotLoaded = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue