Skip to content

Commit

Permalink
Added collecting event param for digitize task
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jan 9, 2020
1 parent 78b6aac commit 8cd479d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/javascript/vue/tasks/digitize/app.vue
Expand Up @@ -78,6 +78,7 @@
let coId = location.pathname.split('/')[4]
let urlParams = new URLSearchParams(window.location.search)
let coIdParam = urlParams.get('collection_object_id')
let ceIdParam = urlParams.get('collecting_event_id')
this.addShortcutsDescription()
Expand All @@ -90,6 +91,8 @@
}
else if (/^\d+$/.test(coIdParam)) {
this.$store.dispatch(ActionNames.LoadDigitalization, coIdParam)
} else if (/^\d+$/.test(ceIdParam)) {
this.$store.dispatch(ActionNames.GetCollectionEvent, ceIdParam)
}
},
methods: {
Expand Down

0 comments on commit 8cd479d

Please sign in to comment.