From 32737ef17bdb0153883720c2ec3fd7eeeae26b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 16 May 2022 15:32:49 +0200 Subject: [PATCH] Web: cleanup, add some trailing commas and remove unused code No functional changes. --- web/app/src/components/JobsTable.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/app/src/components/JobsTable.vue b/web/app/src/components/JobsTable.vue index 14b70201..363d6422 100644 --- a/web/app/src/components/JobsTable.vue +++ b/web/app/src/components/JobsTable.vue @@ -41,11 +41,11 @@ export default { // { title: "ID", field: "id", headerSort: false, formatter: (cell) => cell.getData().id.substr(0, 8), }, { title: 'Status', field: 'status', sorter: 'string', - formatter(cell, formatterParams) { // eslint-disable-line no-unused-vars + formatter(cell) { const cellValue = cell.getData(); const label = toTitleCase(cellValue.status); return ``; - } + }, }, { title: 'Name', field: 'name', sorter: 'string' }, { title: 'Type', field: 'type', sorter: 'string' }, @@ -53,13 +53,13 @@ export default { { title: 'Updated', field: 'updated', sorter: 'alphanum', sorterParams: { alignEmptyValues: "top" }, - formatter(cell, formatterParams) { // eslint-disable-line no-unused-vars + formatter(cell) { const cellValue = cell.getData().updated; // TODO: if any "{amount} {units} ago" shown, the table should be // refreshed every few {units}, so that it doesn't show any stale "4 // seconds ago" for days. return datetime.relativeTime(cellValue); - } + }, }, ], rowFormatter(row) { @@ -163,6 +163,6 @@ export default { if (row.reformat) row.reformat(); else if (row.reinitialize) row.reinitialize(true); }, - } + }, };