Skip to content

Commit

Permalink
Fixes #10451: A running Policy generation is not displayed on the Sta…
Browse files Browse the repository at this point in the history
…tus dropdown
  • Loading branch information
RaphaelGauthier committed Mar 21, 2017
1 parent 7d73ba0 commit a8d221c
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ class AsyncDeployment extends CometActor with CometListener with Loggable {
<li><div id="deployment-end">{displayTime("Ended at ", end)}</div></li>
<li class="dropdown-header" style="border-bottom-style: dotted; border-color: gray;">{durationText} {DateFormaterService.getFormatedPeriod(start,end)}</li>
}
def loadingStatement(start : DateTime) = {
<li class="dropdown-header">Policies building...</li>
<li>{displayTime("Started at ", start)}</li>
}
deploymentStatus.processing match {
case IdleDeployer =>
deploymentStatus.current match {
case NoStatus => <li class="dropdown-header">Policy update status unavailable</li>
case SuccessStatus(id,start,end,configurationNodes) =>
Expand All @@ -156,6 +162,8 @@ class AsyncDeployment extends CometActor with CometListener with Loggable {
} }).apply(errorPopup)
}
}
case _ => loadingStatement(DateTime.now())
}
}

private[this] def currentStatus : NodeSeq = {
Expand Down

0 comments on commit a8d221c

Please sign in to comment.