Răsfoiți Sursa

Remove prototype code.

Paulo Reis 8 ani în urmă
părinte
comite
bd6dcc007b

+ 1 - 2
services/web/app/views/project/editor/history/entriesListV2.pug

@@ -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"

+ 0 - 3
services/web/public/coffee/ide/history/components/historyEntriesList.coffee

@@ -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"
 	}