Skip to content

Commit

Permalink
change param to CO iid #337
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jan 17, 2019
1 parent 07adc2a commit 5a10393
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/javascript/vue/tasks/digitize/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@
}
},
mounted() {
let identifierId = location.pathname.split('/')[4]
let coId = location.pathname.split('/')[4]
GetUserPreferences().then(response => {
this.$store.commit(MutationNames.SetPreferences, response)
})
if (/^\d+$/.test(identifierId)) {
this.$store.dispatch(ActionNames.GetIdentifier, identifierId).then(response => {
this.$store.dispatch(ActionNames.LoadDigitalization, response.identifier_object_id)
})
if (/^\d+$/.test(coId)) {
this.$store.dispatch(ActionNames.LoadDigitalization, coId)
}
},
methods: {
Expand Down

0 comments on commit 5a10393

Please sign in to comment.