Replace person-render-box with on-the-fly in BannerComponent

This change replaces the usage of person-render-box component with the on-the-fly component in the BannerComponent.vue file of ChillTicketBundle. Also, OnTheFly component is now being imported. This update simplifies the structure and improves the readability of the code.
This commit is contained in:
Julien Fastré 2024-06-03 11:20:50 +02:00
parent 643028ffd6
commit be19dc00db
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -40,23 +40,7 @@
<h3 class="text-primary"> <h3 class="text-primary">
{{ $t("banner.concerned_patient") }} {{ $t("banner.concerned_patient") }}
</h3> </h3>
<on-the-fly v-for="person in ticket.currentPersons" :key="person.id" :type="person.type" :id="person.id" :buttonText="person.textAge" :displayBadge="'true' === 'true'" action="show"></on-the-fly>
<person-render-box
render="badge"
v-for="person in ticket.currentPersons"
:key="person.id"
:person="person"
:options="{
addLink: true,
addId: false,
addAltNames: false,
addEntity: true,
addInfo: true,
hLevel: 3,
isMultiline: true,
isConfidential: false,
}"
/>
</div> </div>
<div class="col-md-6 col-sm-12"> <div class="col-md-6 col-sm-12">
<h3 class="text-primary">{{ $t("banner.speaker") }}</h3> <h3 class="text-primary">{{ $t("banner.speaker") }}</h3>
@ -80,6 +64,7 @@ import AddresseeComponent from "./AddresseeComponent.vue";
// Types // Types
import { Ticket } from "../../../types"; import { Ticket } from "../../../types";
import {ISOToDatetime} from "../../../../../../../ChillMainBundle/Resources/public/chill/js/date"; import {ISOToDatetime} from "../../../../../../../ChillMainBundle/Resources/public/chill/js/date";
import OnTheFly from "ChillMainAssets/vuejs/OnTheFly/components/OnTheFly.vue";
export default defineComponent({ export default defineComponent({
name: "BannerComponent", name: "BannerComponent",
@ -90,6 +75,7 @@ export default defineComponent({
}, },
}, },
components: { components: {
OnTheFly,
PersonRenderBox, PersonRenderBox,
AddresseeComponent, AddresseeComponent,
}, },