From 42884179388735a96c3b8052a49214d57cb65b77 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 18 Apr 2020 00:36:14 +0200 Subject: [PATCH] Allow failures to be printed to admin console --- app/assets/javascripts/shell.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/shell.js b/app/assets/javascripts/shell.js index 1cb6bb57..b1bbb714 100644 --- a/app/assets/javascripts/shell.js +++ b/app/assets/javascripts/shell.js @@ -29,10 +29,10 @@ $(document).on('turbolinks:load', function () { }; var handleResponse = function (response) { - if (response.status === 'ok') { - printOutput(response); - } else if (response.status === 'timeout') { + if (response.status === 'timeout') { printTimeout(response); + } else { + printOutput(response); } };