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:
parent
1a9a564553
commit
f5e09618f0
9 changed files with 59 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue