add recipe.image cache key to bush caches (#1427)

* add recipe.image cache key to bush caches

* hotfix: TS type error
This commit is contained in:
Hayden
2022-06-19 11:47:16 -08:00
committed by GitHub
parent c865bc7769
commit f122c382e9
3 changed files with 4 additions and 4 deletions

View File

@@ -47,8 +47,8 @@ export default defineComponent({
}, },
emits: ["delete", "save", "test"], emits: ["delete", "save", "test"],
setup(props, { emit }) { setup(props, { emit }) {
const itemUTC = ref(props.webhook.scheduledTime); const itemUTC = ref<string>(props.webhook.scheduledTime);
const itemLocal = ref(timeUTCToLocal(props.webhook.scheduledTime)); const itemLocal = ref<string>(timeUTCToLocal(props.webhook.scheduledTime));
const scheduledTime = computed({ const scheduledTime = computed({
get() { get() {

View File

@@ -35,7 +35,7 @@
:max-width="enableLandscape ? null : '50%'" :max-width="enableLandscape ? null : '50%'"
min-height="50" min-height="50"
:height="hideImage ? undefined : imageHeight" :height="hideImage ? undefined : imageHeight"
:src="recipeImage(recipe.id, imageKey)" :src="recipeImage(recipe.id, recipe.image, imageKey)"
class="d-print-none" class="d-print-none"
@error="hideImage = true" @error="hideImage = true"
> >

View File

@@ -34,7 +34,7 @@
:key="imageKey" :key="imageKey"
:max-width="enableLandscape ? null : '50%'" :max-width="enableLandscape ? null : '50%'"
:height="hideImage ? '50' : imageHeight" :height="hideImage ? '50' : imageHeight"
:src="recipeImage(recipe.id, imageKey)" :src="recipeImage(recipe.id, recipe.image, imageKey)"
class="d-print-none" class="d-print-none"
@error="hideImage = true" @error="hideImage = true"
> >