From e538a963fd1f981effdf33bd1dbf3477d16a786b Mon Sep 17 00:00:00 2001 From: "Mr. Stallion" Date: Sun, 12 Apr 2020 10:13:28 -0500 Subject: [PATCH] Image load shortcut --- site/character_page/character_page.vue | 2 +- site/character_page/images.vue | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/site/character_page/character_page.vue b/site/character_page/character_page.vue index 24013f3..1b2637b 100644 --- a/site/character_page/character_page.vue +++ b/site/character_page/character_page.vue @@ -51,7 +51,7 @@
- +
diff --git a/site/character_page/images.vue b/site/character_page/images.vue index 52c69dc..17fa638 100644 --- a/site/character_page/images.vue +++ b/site/character_page/images.vue @@ -38,6 +38,9 @@ private readonly character!: Character; @Prop private readonly usePreview?: boolean; + @Prop + private readonly injectedImages?: CharacterImage[] | null; + private shown = false; previewImage = ''; images: CharacterImage[] = []; @@ -64,6 +67,10 @@ } async resolveImages(): Promise { + if ((this.injectedImages) && (this.injectedImages.length)) { + return this.injectedImages; + } + const c = await core.cache.profileCache.get(this.character.character.name); if ((c) && (c.meta) && (c.meta.images)) { @@ -80,4 +87,4 @@ } } } - \ No newline at end of file +