+
+
+
+
+
+
+
+
+
-
-
-
+
@@ -147,6 +160,7 @@ import SummarySection from '@/components/Energy/SummarySection.vue'
import Divider from '@/components/Divider.vue'
import TimeOfDaySection from '~/components/Charts/TimeOfDay/index.vue'
import IconTimeOfDay from '~/components/Vis/IconTimeOfDay.vue'
+import IconDiscreteTime from '~/components/Vis/IconDiscreteTime.vue'
const minTableWidth = 420
@@ -198,7 +212,8 @@ export default {
SummarySection,
Divider,
TimeOfDaySection,
- IconTimeOfDay
+ IconTimeOfDay,
+ IconDiscreteTime
},
data() {
@@ -546,14 +561,11 @@ export default {
handleFilterPeriodChange(period) {
this.setFilterPeriod(period)
},
- handleViewChange() {
- if (this.dashboardView === 'time-of-day') {
- this.dashboardView = 'discrete-time'
- this.handleQueryChange(this.query || { range: '7d', interval: '30m' })
- } else {
- // if it's not 7D, switch to 7D and and then set view
- this.dashboardView = 'time-of-day'
+ handleViewChange(view) {
+ this.dashboardView = view
+ if (view === 'time-of-day') {
+ // if it's not 7D, switch to 7D and and then set view
if (this.range !== '7D') {
this.setRange('7D')
this.setInterval('30m')
@@ -561,6 +573,8 @@ export default {
} else {
this.handleQueryChange(this.query || { range: '7d', interval: '30m' })
}
+ } else {
+ this.handleQueryChange(this.query || { range: '7d', interval: '30m' })
}
},
@@ -609,6 +623,8 @@ export default {