From 8b1ee3e95010681d98d1b31af98f0ce0832cedd2 Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Mon, 8 Jul 2019 23:15:32 +0100 Subject: Fix revocations query and UI Use `Exec` rather than `Query` to update revoked status `Query` works with MySQL but `Exec` is needed with sqlite Test that the key is revoked Correct column ordering --- server/static/js/table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/static/js/table.js') diff --git a/server/static/js/table.js b/server/static/js/table.js index c1e2fa2..a2c0e20 100644 --- a/server/static/js/table.js +++ b/server/static/js/table.js @@ -17,9 +17,9 @@ function reqListener() { // Index keyid and principals. row.cells[0].classList = ["keyid"]; row.cells[3].classList = ["principals"]; - row.insertCell(5) + row.insertCell(6) if (!el.revoked) { - row.cells[5].innerHTML = ''; + row.cells[6].innerHTML = ''; } tbody.appendChild(row); }); -- cgit v1.2.3