[Client] minor refacto

This commit is contained in:
Sam
2021-11-28 14:53:15 +01:00
parent 5201362ac4
commit 2cc485a293
5 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@
import { LineChart, useLineChart } from 'vue-chart-3'
import { useI18n } from 'vue-i18n'
import { htmlLegendPlugin } from '@/components/Workout/WorkoutChart/legend'
import { htmlLegendPlugin } from '@/components/Workout/WorkoutDetail/WorkoutChart/legend'
import { TUnit } from '@/types/units'
import { IUserProfile } from '@/types/user'
import {

View File

@ -50,8 +50,8 @@ export const htmlLegendPlugin = {
const boxSpan = document.createElement('span')
if (boxSpan) {
boxSpan.style.background = `${item.fillStyle}`
boxSpan.style.borderColor = `${item.strokeStyle}`
boxSpan.style.background = String(item.fillStyle)
boxSpan.style.borderColor = String(item.strokeStyle)
}
li.appendChild(checkBox)