Remove prototype code.

This commit is contained in:
Paulo Reis 2018-08-06 11:00:45 +01:00
parent 80eeaaaaea
commit bd6dcc007b
2 changed files with 1 additions and 5 deletions

View file

@ -10,7 +10,6 @@ aside.change-list(
load-disabled="history.loading || history.atEnd"
load-initialize="ui.view == 'history'"
is-loading="history.loading"
show-only-labelled="listConfig.showOnlyLabelled"
on-entry-select="handleEntrySelect(selectedEntry)"
on-label-delete="handleLabelDelete(label)"
)
@ -115,7 +114,7 @@ script(type="text/ng-template", id="historyEntriesListTpl")
)
.infinite-scroll-inner
history-entry(
ng-repeat="entry in $ctrl.entries | filter:$ctrl.shouldShowEntry"
ng-repeat="entry in $ctrl.entries"
entry="entry"
current-user="$ctrl.currentUser"
users="$ctrl.users"

View file

@ -3,8 +3,6 @@ define [
], (App) ->
historyEntriesListController = ($scope, $element, $attrs) ->
ctrl = @
ctrl.shouldShowEntry = (entry) ->
!(ctrl.showOnlyLabelled and entry.labels.length == 0)
return
App.component "historyEntriesList", {
@ -18,7 +16,6 @@ define [
currentUser: "<"
onEntrySelect: "&"
onLabelDelete: "&"
showOnlyLabelled: "<"
controller: historyEntriesListController
templateUrl: "historyEntriesListTpl"
}