From 21cea3eb1dbd58795482f29b7c2e5ed198fb7d63 Mon Sep 17 00:00:00 2001 From: alan-wu Date: Tue, 13 Dec 2022 12:02:47 +1300 Subject: [PATCH] Start storing uuid when saving the state. --- src/components/FlatmapVuer.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/FlatmapVuer.vue b/src/components/FlatmapVuer.vue index f99ea867..8d27bc9e 100644 --- a/src/components/FlatmapVuer.vue +++ b/src/components/FlatmapVuer.vue @@ -566,9 +566,15 @@ export default { if (this.mapImp) { let state = { entry: this.entry, - biologicalSex: this.biologicalSex, viewport: this.mapImp.getState() }; + const identifier = this.mapImp.getIdentifier(); + if (this.biologicalSex) + state['biologicalSex'] = this.biologicalSex; + else if (identifier && identifier.biologicalSex) + state['biologicalSex'] = identifier.biologicalSex; + if (identifier && identifier.uuid) + state['uuid'] = identifier.uuid; return state; } return undefined; @@ -703,7 +709,10 @@ export default { }, props: { entry: String, - biologicalSex: String, + biologicalSex: { + type: String, + default: "" + }, featureInfo: { type: Boolean, default: false