Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Dec 19, 2023
1 parent b6c408a commit 1af7a01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/view/view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ export default {
if (this.cards.length > 0 && this.cards[0]) {
console.log(buildings.map(building => building.id))
await this.$store.dispatch(this.cards[0].path + '/removeAllModifiers')
// addModifier and updateModifier below call src\store\block_modifiers\building_compare.mod.js
// addModifier and updateModifier below call block.module.js, then building_compare.mod.js
// See addModifier and updateModifier functions in block.module.js code
// and src\store\block.module.js to add new charts to comparison / remove old charts (duplicate chart path triggers error)
await this.$store.dispatch(this.cards[0].path + '/addModifier', 'building_compare')
// buildingIds below defines which buildingId are sent to building_compare.mod.js, which also affects chartSpace naming
// buildingIds below defines which buildingId are sent to block.module.js and then building_compare.mod.js,
// which also affects chartSpace naming
await this.$store.dispatch(this.cards[0].path + '/updateModifier', {
name: 'building_compare',
data: {
Expand Down

0 comments on commit 1af7a01

Please sign in to comment.