chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
angular.module('portainer.docker').factory('TaskHelper', [
|
||||
function TaskHelperFactory() {
|
||||
'use strict';
|
||||
|
||||
var helper = {};
|
||||
|
||||
helper.associateContainerToTask = associateContainerToTaskAJS;
|
||||
|
||||
return helper;
|
||||
|
||||
function associateContainerToTaskAJS(task, containers) {
|
||||
const container = containers.find((c) => c.Id === task.ContainerId);
|
||||
if (container) {
|
||||
task.Container = container;
|
||||
}
|
||||
}
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user