mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
refactor(docker): remove EndpointProvider from exec [EE-6462] (#10840)
This commit is contained in:
parent
76e49ed9a8
commit
de473fc10e
3 changed files with 6 additions and 7 deletions
|
@ -6,11 +6,11 @@ angular.module('portainer.docker').factory('ExecService', [
|
|||
'use strict';
|
||||
var service = {};
|
||||
|
||||
service.resizeTTY = function (execId, width, height, timeout) {
|
||||
service.resizeTTY = function (environmentId, execId, width, height, timeout) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
$timeout(function () {
|
||||
Exec.resize({}, { id: execId, height: height, width: width })
|
||||
Exec.resize({ environmentId }, { id: execId, height: height, width: width })
|
||||
.$promise.then(function success(data) {
|
||||
if (data.message) {
|
||||
deferred.reject({ msg: 'Unable to resize tty of exec', err: data.message });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue