diff --git a/frontend/src/components/RecipeDetailOverlay.vue b/frontend/src/components/RecipeDetailOverlay.vue index 588132a..d5c9537 100644 --- a/frontend/src/components/RecipeDetailOverlay.vue +++ b/frontend/src/components/RecipeDetailOverlay.vue @@ -466,12 +466,16 @@ async function loadBrand() { } } -// Whether to show the brand/QR upload hint +// Whether to show the brand/QR upload hint (show to all users who haven't set up brand assets) const showBrandHint = computed(() => - authStore.isLoggedIn && !!brand.value && !brand.value.qr_code && !brand.value.brand_bg + !!brand.value && !brand.value.qr_code && !brand.value.brand_bg ) function goUploadQr() { + if (!authStore.isLoggedIn) { + ui.openLogin() + return + } if (recipe.value._id) { localStorage.setItem('oil_return_recipe_id', recipe.value._id) }