diff --git a/src/Store.ts b/src/Store.ts
index 69b5a0c..01b8c41 100644
--- a/src/Store.ts
+++ b/src/Store.ts
@@ -13,6 +13,8 @@ export class Store {
private appState: ApplicationState = reactive({
isMenuVisible: false,
isPopUpVisible: false,
+ isImageModalVisible: false,
+ imageModalUrl: "",
popUpType: null,
popUpData: null,
virtualVisitAlreadyOpened: false,
@@ -55,6 +57,14 @@ export class Store {
this.appState.isPopUpVisible = !this.appState.isPopUpVisible
}
+ public updateImageModalVisibility (visibility: boolean) {
+ this.appState.isImageModalVisible = visibility
+ }
+
+ public setImageModalUrl (url: string) {
+ this.appState.imageModalUrl = url
+ }
+
public setPopUpData (data: OpsData | OtherData, type: PopUpType) {
this.appState.popUpType = type
this.appState.popUpData = data
diff --git a/src/classes/State.ts b/src/classes/State.ts
index 17937d1..6fe04c1 100644
--- a/src/classes/State.ts
+++ b/src/classes/State.ts
@@ -23,6 +23,8 @@ export enum PopUpType {
export interface ApplicationState {
isMenuVisible: boolean;
isPopUpVisible: boolean;
+ isImageModalVisible: boolean;
+ imageModalUrl: string;
popUpType: PopUpType | null;
popUpData: OpsData | OtherData | null;
virtualVisitAlreadyOpened: boolean;
diff --git a/src/classes/data/OpsData.ts b/src/classes/data/OpsData.ts
index a93b326..a9e41d9 100644
--- a/src/classes/data/OpsData.ts
+++ b/src/classes/data/OpsData.ts
@@ -26,11 +26,11 @@ export interface OpsData {
boatType : string
nbNationalities : string
transfertType : string
- imageSrc: string[]
- videoSrc: string[]
+ imageSrc: string
+ videoSrc: string
portDisembarkation : string
- testimonyName: string[]
- testimonySrc: string[]
+ testimonyName: string
+ testimonySrc: string
}
const createDate = function (dateDayFirst: string) {
@@ -84,13 +84,13 @@ const convertOpsData = function (rawOpsData: {[key: string]: string}, metadataEr
res.boatType = rawOpsData.boatType
res.nbNationalities = rawOpsData.typeNationalities
res.transfertType = rawOpsData.transfertType
- res.imageSrc = rawOpsData.imageSrc ? rawOpsData.imageSrc.split(";") : []
- res.videoSrc = rawOpsData.videoSrv ? rawOpsData.videoSrv.split(";") : []
+ res.imageSrc = rawOpsData.imageSrc
+ res.videoSrc = rawOpsData.videoSrv
res.portDisembarkation = rawOpsData.PortDisembarkation
- res.testimonyName = rawOpsData.testimonyName ? rawOpsData.testimonyName.split(";") : []
- if (res.testimonyName.length === 1) res.testimonyName = res.testimonyName.pop() as unknown as string[]
- res.testimonySrc = rawOpsData.testimonySrc ? rawOpsData.testimonySrc.split(";") : []
- if (res.testimonySrc.length === 1) res.testimonySrc = res.testimonySrc.pop() as unknown as string[]
+ res.testimonyName = rawOpsData.testimonyName
+ // if (res.testimonyName.length === 1) res.testimonyName = res.testimonyName.pop() as unknown as string[]
+ res.testimonySrc = rawOpsData.testimonySrc
+ // if (res.testimonySrc.length === 1) res.testimonySrc = res.testimonySrc.pop() as unknown as string[]
return res
}
diff --git a/src/components/PopUp.vue b/src/components/PopUp.vue
index 9bc7ed5..943be84 100644
--- a/src/components/PopUp.vue
+++ b/src/components/PopUp.vue
@@ -10,11 +10,25 @@
+
{{ $t("stats.females") }}
{{ $t("stats.males") }}
{{ $t("stats.minors") }}
{{ $t("stats.children") }}
{{ format(deathData.date, "full") }}
{{ $t("popup.boatInvolved") }}: +
{{ $t("popup.boatInvolved") }}: {{ deathData.boatInvolved }}
-{{ $t("popup.peoplesNB") }}: +
{{ $t("popup.peoplesNB") }}: {{ deathData.deathNumber }}
@@ -35,20 +35,6 @@
-
{{ format(incidentData.date, "full") }}
{{ $t("popup.boatInvolved") }}: +
{{ $t("popup.boatInvolved") }}: {{ incidentData.boatInvolved }}
-+
{{ $t("popup.facts") }}: {{ incidentData.incAction }}
@@ -36,20 +36,6 @@ -