You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/services/entityListService.js

16 lines
456 B

angular.module('portainer.services')
.factory('EntityListService', [function EntityListServiceFactory() {
'use strict';
return {
rememberPreviousSelection: function(oldContainerList, model, onSelectCallback) {
var oldModel = _.find(oldContainerList, function(item){
return item.Id === model.Id;
});
if (oldModel && oldModel.Checked) {
model.Checked = true;
onSelectCallback(model);
}
}
};
}]);