New hover tooltip layout, use template literals

This commit is contained in:
Nick Krecklow
2020-06-08 16:29:15 -05:00
parent 2336c9f78b
commit d48c5afc9b
9 changed files with 150 additions and 147 deletions

View File

@ -6,7 +6,7 @@ const SORT_OPTIONS = [
},
{
getName: (app) => {
return app.publicConfig.graphDurationLabel + ' Peak'
return `${app.publicConfig.graphDurationLabel} Peak`
},
sortFunc: (a, b) => {
if (!a.lastPeakData && !b.lastPeakData) {
@ -188,7 +188,7 @@ export class SortController {
// Update the DOM structure
sortedServers.forEach(function (serverRegistration) {
const parentElement = document.getElementById('server-list')
const serverElement = document.getElementById('container_' + serverRegistration.serverId)
const serverElement = document.getElementById(`container_${serverRegistration.serverId}`)
parentElement.appendChild(serverElement)