Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed FullScreen comparison bug #286

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions src/components/map/map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,18 @@ export default {
try {
if (this.building_compare_error === false) {
let path = this.$store.getters['map/building'](this.compareStories[0]).path
let mgId = this.$store.getters[path + '/primaryGroup']('Electricity').id
let blockSpace = this.$store.getters[path + '/block'](mgId).path
await this.$store.dispatch(blockSpace + '/removeAllModifiers')
await this.$store.dispatch(blockSpace + '/addModifier', 'building_compare')
await this.$store.dispatch(blockSpace + '/updateModifier', {
name: 'building_compare',
data: {
buildingIds: this.compareStories
}
})

if (target === 'q') {
let mgId = this.$store.getters[path + '/primaryGroup']('Electricity').id

let blockSpace = this.$store.getters[path + '/block'](mgId).path
await this.$store.dispatch(blockSpace + '/removeAllModifiers')
await this.$store.dispatch(blockSpace + '/addModifier', 'building_compare')
await this.$store.dispatch(blockSpace + '/updateModifier', {
name: 'building_compare',
data: {
buildingIds: this.compareStories
}
})
window.vue.$store.dispatch('modalController/openModal', {
name: 'map_compare_side',
path: path
Expand Down
Loading