Просмотр исходного кода

Make sure that at least the last update (i.e. the current state) is shown to free users (even if it happened more than 24 hours ago), to allow labelling.

Paulo Reis 8 лет назад
Родитель
Сommit
5974afc2e3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/public/coffee/ide/history/HistoryV2Manager.coffee

+ 1 - 1
services/web/public/coffee/ide/history/HistoryV2Manager.coffee

@@ -410,7 +410,7 @@ define [
 				previousUpdate = update
 
 				if !@$scope.history.userHasFullFeature and update.meta.end_ts < timestamp24hoursAgo
-					cutOffIndex = i
+					cutOffIndex = i or 1 # Make sure that we show at least one entry (to allow labelling).
 					@$scope.history.freeHistoryLimitHit = true
 					break