This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 366ab50  ARTEMIS-3469 additionally show readable versions of 
expiration/timestamp
     new 57156ba  This closes #3734
366ab50 is described below

commit 366ab504acb328b430d46c80067f5ef53f72e14e
Author: Erwin Dondorp <[email protected]>
AuthorDate: Thu Sep 9 16:42:25 2021 +0200

    ARTEMIS-3469 additionally show readable versions of expiration/timestamp
---
 .../artemis-plugin/src/main/webapp/plugin/js/components/browse.js    | 5 +++++
 1 file changed, 5 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 dfdc66e..ea416be 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
@@ -790,6 +790,11 @@ var Artemis;
         var headers = [];
             angular.forEach(message, function (value, key) {
                 if (!_.some(ignoreColumns, function (k) { return k === key; }) 
&& !_.some(flattenColumns, function (k) { return k === key; })) {
+                    if(key === "expiration") {
+                        value += " (" + formatExpires(value) + ")";
+                    } else if(key === "timestamp") {
+                        value += " (" + formatTimestamp(value) + ")";
+                    }
                     headers.push({key: key, value: value});
                 }
             });

Reply via email to