File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
resources/js/Components/CMS/Webpage/WowsbarBanner Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22import SliderLandscape from " @/Components/Banners/Slider/SliderLandscape.vue" ;
33import SliderSquare from " @/Components/Banners/Slider/SliderSquare.vue" ;
44import { getStyles } from " @/Composables/styles" ;
5+ import { trans } from " laravel-vue-i18n"
56
67
78const props = defineProps <{
@@ -17,8 +18,11 @@ const props = defineProps<{
1718
1819<template >
1920 <div :style =" getStyles(fieldValue?.container?.properties)" >
20- <SliderLandscape v-if =" fieldValue.compiled_layout.type === 'landscape'" :data =" fieldValue.compiled_layout"
21+ <SliderLandscape v-if =" fieldValue? .compiled_layout? .type === 'landscape'" :data =" fieldValue.compiled_layout"
2122 :production =" true" />
22- <SliderSquare v-else :data =" fieldValue.compiled_layout" :production =" true" />
23+ <SliderSquare v-else-if =" fieldValue?.compiled_layout?.type === 'square'" :data =" fieldValue.compiled_layout" :production =" true" />
24+ <div v-else class =" py-4 w-full bg-gray-100 text-center text-gray-400 italic" >
25+ {{ trans("Banner is empty") }}
26+ </div >
2327 </div >
2428</template >
You can’t perform that action at this time.
0 commit comments