mirror of https://github.com/portainer/portainer
parent
f1c458b147
commit
6f53d1a35a
@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
};
|
||||
}]);
|
Loading…
Reference in new issue