1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-08 23:35:31 +02:00

feat(edge): add EnvVar to stack details [EE-5463] (#9036)

This commit is contained in:
Chaim Lev-Ari 2023-07-04 11:14:35 +07:00 committed by GitHub
parent 1a9a564553
commit f5e09618f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 59 additions and 6 deletions

View file

@ -111,12 +111,13 @@ angular.module('portainer.app').factory('FileUploadService', [
});
};
service.createEdgeStack = function createEdgeStack({ EdgeGroups, ...payload }, file) {
service.createEdgeStack = function createEdgeStack({ EdgeGroups, envVars, ...payload }, file) {
return Upload.upload({
url: `api/edge_stacks/create/file`,
data: {
file,
EdgeGroups: Upload.json(EdgeGroups),
EnvVars: Upload.json(envVars),
...payload,
},
ignoreLoadingBar: true,