From 1646709f7e0be5532f3d8a2d0e92d3360930bc35 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Tue, 24 Apr 2018 16:09:49 -0700 Subject: [PATCH] wip showing failure state --- static/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/index.js b/static/index.js index 105ec74..5d6c4c0 100644 --- a/static/index.js +++ b/static/index.js @@ -29,12 +29,13 @@ function new_task() { function new_api_key() { $.get("/v1/key/new", function(data, status) { let template = $("#api-key-template").html(); + template = $(template); $("code", template).text(data.api_key.key); $("#new-api-key").before(template); - // $("#new-api-key").before("
  • " + data.api_key.key + "
  • "); }).fail(function(a) { console.log(a); let template = $("#api-key-template").html(); + template = $(template); $("code", template).text("Failure!"); $("#new-api-key").before(template); });