From 3296d431cfea41ed1863cc05d7d56cf197546d8d Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Wed, 17 Feb 2021 13:12:13 -0600 Subject: [PATCH] ARTEMIS-3124 readability for 'Expires' when browsing via console --- .../src/main/webapp/plugin/js/components/browse.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js index 4780a2a528..87b8114abc 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js @@ -425,6 +425,9 @@ var Artemis; if (isNaN(timestamp)) { return timestamp; } + if (timestamp == 0) { + return "never"; + } var expiresIn = timestamp - Date.now(); if (Math.abs(expiresIn) < MS_PER_DAY) { var duration = expiresIn < 0 ? -expiresIn : expiresIn;