1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: view details of unknown projects on dashboard

This commit is contained in:
Ferdinand Mütsch
2023-04-03 20:30:23 +02:00
parent ca3320b174
commit 083fbf8633
9 changed files with 1269 additions and 1258 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -134,10 +134,9 @@ function draw(subselection) {
},
maintainAspectRatio: false,
onClick: (event, data) => {
const idx = data[0].index
const name = wakapiData.projects[idx].key
const url = new URL(window.location.href)
url.searchParams.set('project', name)
const name = wakapiData.projects[data[0].index].key
url.searchParams.set('project', name === 'unknown' ? '-' : name)
window.location.href = url.href
},
onHover: (event, elem) => {