Skip to content

Commit

Permalink
[VBV-2009] Added periodical update of the logs in the details view of…
Browse files Browse the repository at this point in the history
… a container

Change-Id: I6de102026be375d0404323dc3b3f272b859461a3
Reviewed-on: https://bellevue-ci.eng.vmware.com:8080/34832
Upgrade-Verified: jenkins <[email protected]>
Closures-Verified: jenkins <[email protected]>
Bellevue-Verified: jenkins <[email protected]>
CS-Verified: jenkins <[email protected]>
Reviewed-by: Iveta Ilieva <[email protected]>
  • Loading branch information
AleksandrovaP committed May 30, 2018
1 parent b7958ea commit 700ee54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/app/src/js/components/containers/ContainerDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ var ContainerDetailsVueComponent = Vue.extend({
this.startRefreshPollingTimeout = setTimeout(
() => this.refreshContainersInterval, constants.CONTAINERS.START_REFRESH_POLLING_DELAY);
}

if (!this.refreshLogsInterval) {
this.refreshLogsInterval = setInterval(() => {
ContainerActions.refreshContainerLogs();
}, REFRESH_LOGS_TIMEOUT);
}
}
},

Expand All @@ -102,6 +108,9 @@ var ContainerDetailsVueComponent = Vue.extend({
clearInterval(this.refreshContainerInterval);
this.refreshContainerInterval = null;

clearInterval(this.refreshLogsInterval);
this.refreshLogsInterval = null;

ContainerActions.stopRescanContainer();
}
},
Expand Down Expand Up @@ -233,6 +242,7 @@ var ContainerDetailsVueComponent = Vue.extend({

refresh: function() {
ContainerActions.refreshContainer();
ContainerActions.refreshContainerLogs();
},

goBack: function() {
Expand Down

0 comments on commit 700ee54

Please sign in to comment.