Skip to content

Commit

Permalink
cmd/bosun: fix incident view for closed incidents (#2315)
Browse files Browse the repository at this point in the history
makes the last event entry duration based on the close time if the incident has been closed
  • Loading branch information
kylebrandt authored Sep 21, 2018
1 parent 97302ba commit aaa574d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
49 changes: 25 additions & 24 deletions cmd/bosun/web/static.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cmd/bosun/web/static/partials/incident.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h4>Events</h4>
<h4 class="panel-title">
<a href>
<span ng-bind="v.Status"></span>
<span class="pull-right" ng-show="v.Time" ts-time="v.Time" ts-end-time="events[$index-1].Time" no-link="true"></span>
<span class="pull-right" ng-show="v.Time" ts-time="v.Time" ts-end-time="events[$index-1].Time ? events[$index-1].Time : (incident.Open ? undefined : incident.End) " no-link="true"></span>
</a>
</h4>
</div>
Expand Down

0 comments on commit aaa574d

Please sign in to comment.