fix translations on dashboard

v1.18.x
Barış Soner Uşaklı 6 years ago
parent c4a064010a
commit 56c1eac1a5

@ -264,7 +264,7 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator', 'benchpress'
graphs.registered = new Chart(registeredCtx, { graphs.registered = new Chart(registeredCtx, {
type: 'doughnut', type: 'doughnut',
data: { data: {
labels: translations.slice(2, 4), labels: translations.slice(5, 7),
datasets: [{ datasets: [{
data: [1, 1], data: [1, 1],
backgroundColor: ['#F7464A', '#46BFBD'], backgroundColor: ['#F7464A', '#46BFBD'],
@ -282,7 +282,7 @@ define('admin/general/dashboard', ['semver', 'Chart', 'translator', 'benchpress'
graphs.presence = new Chart(presenceCtx, { graphs.presence = new Chart(presenceCtx, {
type: 'doughnut', type: 'doughnut',
data: { data: {
labels: translations.slice(4, 9), labels: translations.slice(7, 12),
datasets: [{ datasets: [{
data: [1, 1, 1, 1, 1], data: [1, 1, 1, 1, 1],
backgroundColor: ['#F7464A', '#46BFBD', '#FDB45C', '#949FB1', '#9FB194'], backgroundColor: ['#F7464A', '#46BFBD', '#FDB45C', '#949FB1', '#9FB194'],

Loading…
Cancel
Save