Merge pull request #2957 from coreos-inc/joseph.schorr/QS-104/time-display-bug

Remove single bind on time-ago component
This commit is contained in:
josephschorr 2018-01-04 11:20:38 -05:00 committed by GitHub
commit db0b28eadb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<span>
<span ng-if="::$ctrl.datetime" data-title="{{ ::$ctrl.datetime | amDateFormat:'llll' }}" bs-tooltip>
<span am-time-ago="::$ctrl.datetime"></span>
<span ng-if="$ctrl.datetime" data-title="{{ $ctrl.datetime | amDateFormat:'llll' }}" bs-tooltip>
<span am-time-ago="$ctrl.datetime"></span>
</span>
<span ng-if="::!$ctrl.datetime">Unknown</span>
<span ng-if="!$ctrl.datetime">Unknown</span>
</span>