This is an automated email from the ASF dual-hosted git repository.
tbouron pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
The following commit(s) were added to refs/heads/master by this push:
new 7462da7 Make the timeAgoFilter stateful so it keeps updating the
display
new fdadc17 Merge pull request #250 from tbouron/fix/timeago-filter
7462da7 is described below
commit 7462da72170e99057e228258c95af99cc1e71b43
Author: Thomas Bouron <[email protected]>
AuthorDate: Fri Jul 16 11:34:09 2021 +0100
Make the timeAgoFilter stateful so it keeps updating the display
---
.../app-inspector/app/components/task-list/task-list.directive.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git
a/ui-modules/app-inspector/app/components/task-list/task-list.directive.js
b/ui-modules/app-inspector/app/components/task-list/task-list.directive.js
index a67690d..dd6d807 100644
--- a/ui-modules/app-inspector/app/components/task-list/task-list.directive.js
+++ b/ui-modules/app-inspector/app/components/task-list/task-list.directive.js
@@ -84,11 +84,15 @@ export function taskListDirective() {
}
export function timeAgoFilter() {
- return function (input) {
+ function timeAgo(input) {
if (input) {
return moment(input).fromNow();
}
}
+
+ timeAgo.$stateful = true;
+
+ return timeAgo;
}
export function durationFilter() {
return function (input) {