Skip to content

Commit

Permalink
updated statuses formatting method
Browse files Browse the repository at this point in the history
Signed-off-by: Qin <[email protected]>
  • Loading branch information
ArwenQin committed Aug 22, 2024
1 parent 8af6076 commit 2d66e35
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,7 @@
</template>
<span>
<!-- when hover over 'Multiple Selected' showing what are selected. -->
{{
reviewParams[header.value]
.map(statusValue => statusTypes.find(status => status.value === statusValue)?.text)
.join(', ')
}}
{{ formattedStatuses() }}
</span>
</v-tooltip>
<!-- Display the item text if only one is selected -->
Expand Down Expand Up @@ -645,6 +641,12 @@ export default defineComponent({
}
}
function formattedStatuses () : string {
return state.reviewParams['status']
.map(statusValue => state.statusTypes.find(status => status.value === statusValue)?.text)
.join(', ')
}
function changeSort (column: string) {
if (state.sortBy === column) {
state.sortDesc = !this.sortDesc
Expand Down Expand Up @@ -684,7 +686,8 @@ export default defineComponent({
expiredDate,
updateItemsPerPage,
updateDateRange,
updateEffectiveDateRange
updateEffectiveDateRange,
formattedStatuses
}
}
})
Expand Down

0 comments on commit 2d66e35

Please sign in to comment.