diff --git a/src/components/view/modals/download_data.vue b/src/components/view/modals/download_data.vue
index ef62acc0..80cc66df 100644
--- a/src/components/view/modals/download_data.vue
+++ b/src/components/view/modals/download_data.vue
@@ -62,7 +62,7 @@ Saturday December 21st 2019 * @Copyright: (c) Oregon State University 2019 */
-
+
diff --git a/src/components/view/modals/edit_card.vue b/src/components/view/modals/edit_card.vue
index 879b47fe..bdc1c432 100644
--- a/src/components/view/modals/edit_card.vue
+++ b/src/components/view/modals/edit_card.vue
@@ -82,7 +82,7 @@
-
+
diff --git a/src/components/view/view.vue b/src/components/view/view.vue
index fde23511..ae3446d7 100644
--- a/src/components/view/view.vue
+++ b/src/components/view/view.vue
@@ -282,27 +282,12 @@ export default {
},
intervalUnit: {
get () {
- /*
- If we're dealing with solar panels just show the interval in hours or minutes since the
- default unit for solar panels is Energy in Interval--basically the change in
- energy absorbed over a time frame, so any range greater than an hour will make ChartJS
- produce a trendline of zero (horizontal line) which isn't particularly useful for anyone.
- */
- let isSolar = ''
- if (this.$store.getters[`map/building_${this.$route.params.id}/meterGroups`]) {
- isSolar = this.$store.getters[`map/building_${this.$route.params.id}/meterGroups`][0].type === 'Solar Panel'
- } else {
- isSolar = false
- }
-
switch (parseInt(this.$route.params.range)) {
case 1:
return 'hour'
case 2:
- if (isSolar) return 'hour'
return 'day'
case 3:
- if (isSolar) return 'hour'
return 'day'
default:
return 'minute'
diff --git a/src/store/block.module.js b/src/store/block.module.js
index 0d4f1397..7fa80a14 100644
--- a/src/store/block.module.js
+++ b/src/store/block.module.js
@@ -220,11 +220,9 @@ const actions = {
let moduleSpace = store.getters.path + '/' + chartSpace
this.registerModule(moduleSpace.split('/'), Chart)
let utilityType = ''
- let blockClassInt = ''
if (this.getters[payload.group.path + '/meters'].length > 0) {
await this.getters[payload.group.path + '/meters'][0].promise
utilityType = this.getters[this.getters[payload.group.path + '/meters'][0].path + '/type']
- blockClassInt = this.getters[this.getters[payload.group.path + '/meters'][0].path + '/classInt']
}
// this defines the "default chart", "Total Electricity"
store.commit(chartSpace + '/name', 'Total ' + utilityType)
@@ -255,19 +253,7 @@ const actions = {
// default chart settings
store.commit('dateInterval', 1)
store.commit('graphType', 1)
-
- // change default interval for solar panels
- // Note: this parameter is often modified elsewhere in the dashboard
- // E.g. Building list component changes it via a Vue router parameter
- if (utilityType === 'Solar Panel' || blockClassInt === 9990002) {
- // Solar panel webscraper uploads time_seconds in UTC
- // so we're gonna need to add the offset for the correct time
- // in pacific standard time.
- store.commit('timeZoneOffset', 420 * 60)
- store.commit('intervalUnit', 'hour')
- } else {
- store.commit('intervalUnit', 'day')
- }
+ store.commit('intervalUnit', 'day')
let currentEpoch = new Date().getTime()
currentEpoch = currentEpoch - (currentEpoch % (900 * 1000))