Skip to content

Commit

Permalink
formatting and fix some issues with saved time period blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Dec 31, 2023
1 parent 16b9f76 commit c8c9190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/components/view/modals/edit_card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
Save Time Period {{ this.form.tempMultStart.length + 1 }}</el-button
>
<el-button @click="visible = false" type="info"> Cancel </el-button>
<div class="savedTimesDiv">
<div class="savedTimesDiv" v-if="compareOneBuildingView">
<p class="savedTimesP">Currently Saved Times:</p>

<el-button
Expand All @@ -266,7 +266,9 @@
:key="index"
:style="savedTimeButtonFirst(index)"
>
{{ index + 1 }}: {{ convertTimeStamps(new Date(item)) }}
<!-- Since tempMultStart and tempMultEnd share the same array lengths it *should* be fine to call form.tempMultEnd[index]-->
{{ index + 1 }}: {{ convertTimeStamps(new Date(item)) }} to
{{ convertTimeStamps(new Date(form.tempMultEnd[index])) }}
</el-button>
</div>
</span>
Expand Down Expand Up @@ -473,7 +475,7 @@ export default {
meridiem
)
},
savedTimeButtonFirst: function (i) {
let style = {}
Expand Down
2 changes: 1 addition & 1 deletion src/store/chart.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const mutations = {
resetMultTimeStamps (state) {
state.multStart = []
state.multEnd = []
},
}
}

const getters = {
Expand Down

0 comments on commit c8c9190

Please sign in to comment.