Skip to content

Commit

Permalink
hide header buttons in ToD view
Browse files Browse the repository at this point in the history
  • Loading branch information
chienleng committed Oct 4, 2023
1 parent 855ad09 commit dacfb1e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/layout/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@close="closeDrawer" />

<div
v-if="!isFacilitiesView && isEnergyOrFacilitiesView"
v-if="!isFacilitiesView && isEnergyOrFacilitiesView && !isTimeOfDayView"
:class="{ hide: tabletBreak }"
class="more-buttons">
<consumption-generation-toggle />
Expand Down Expand Up @@ -63,7 +63,7 @@
</div>

<div
v-if="!tabletBreak && isEnergyOrFacilitiesView"
v-if="!tabletBreak && isEnergyOrFacilitiesView && !isTimeOfDayView"
class="s-button-wrapper">
<button
v-on-clickaway="handleClickAway"
Expand Down Expand Up @@ -153,6 +153,7 @@ export default {
...mapGetters({
currentView: 'currentView',
tabletBreak: 'app/tabletBreak',
dashboardView: 'app/dashboardView',
compareCurrentDataset: 'compare/currentDataset',
selectedMetricObj: 'stripes/selectedMetricObj',
Expand Down Expand Up @@ -194,6 +195,10 @@ export default {
return this.$route.name === 'emissions-world'
},
isTimeOfDayView() {
return this.dashboardView === 'time-of-day'
},
range() {
return this.$store.getters.range
},
Expand Down

0 comments on commit dacfb1e

Please sign in to comment.