Drive review label from CMS widget.
This commit is contained in:
parent
270c75743c
commit
280994f9d8
3 changed files with 13 additions and 8 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="py-3">
|
<div class="py-3">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<textBlock :customText="headerText" typeStyle="body small bold" margin="mt-0" />
|
<textBlock
|
||||||
|
:cmsWidgetName="headerCmsWidgetName"
|
||||||
|
typeStyle="body small bold"
|
||||||
|
margin="mt-0" />
|
||||||
<textLink linkType="textSmall" text="Edit" class="ml-auto" @click-event="linkClicked" />
|
<textLink linkType="textSmall" text="Edit" class="ml-auto" @click-event="linkClicked" />
|
||||||
</div>
|
</div>
|
||||||
<div class="small" v-for="item in content" :key="item">
|
<div class="small" v-for="item in content" :key="item">
|
||||||
|
|
@ -17,7 +20,7 @@ import textLink from "@/ux-components/text-link/text-link";
|
||||||
export default {
|
export default {
|
||||||
name: "vehicle-review",
|
name: "vehicle-review",
|
||||||
props: {
|
props: {
|
||||||
headerText: String,
|
headerCmsWidgetName: String,
|
||||||
// Specifically an array of strings.
|
// Specifically an array of strings.
|
||||||
content: Array,
|
content: Array,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<reviewBlock :headerText="headerText" :content="displayContent" @edit-clicked="editClicked" />
|
<reviewBlock
|
||||||
|
:headerCmsWidgetName="cmsWidgetName"
|
||||||
|
:content="displayContent"
|
||||||
|
@edit-clicked="editClicked" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -7,7 +10,9 @@ import reviewBlock from "@/layouts/review/review-block/review-block";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "vehicle-review",
|
name: "vehicle-review",
|
||||||
props: {},
|
props: {
|
||||||
|
cmsWidgetName: String,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
|
@ -17,9 +22,6 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
headerText () {
|
|
||||||
return "Vehicle";
|
|
||||||
},
|
|
||||||
displayContent() {
|
displayContent() {
|
||||||
return ["2018 Ford Fiesta"];
|
return ["2018 Ford Fiesta"];
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
class="dark-header" />
|
class="dark-header" />
|
||||||
|
|
||||||
<div class="px-4">
|
<div class="px-4">
|
||||||
<vehicleReview />
|
<vehicleReview cmsWidgetName="VehicleReviewWidget" />
|
||||||
<hr class="my-0" />
|
<hr class="my-0" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue