mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
Adds env-vars to store
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
f5f83d7c05
commit
ca34fd0ed1
7
gateway/assets/script/bootstrap.js
vendored
7
gateway/assets/script/bootstrap.js
vendored
@ -26,7 +26,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
|
|||||||
image: "",
|
image: "",
|
||||||
envProcess: "",
|
envProcess: "",
|
||||||
network: "",
|
network: "",
|
||||||
service: ""
|
service: "",
|
||||||
|
envVars: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.invocation.request = "";
|
$scope.invocation.request = "";
|
||||||
@ -150,6 +151,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
|
|||||||
$scope.item.service = func.name;
|
$scope.item.service = func.name;
|
||||||
$scope.item.envProcess = func.fprocess;
|
$scope.item.envProcess = func.fprocess;
|
||||||
$scope.item.network = func.network;
|
$scope.item.network = func.network;
|
||||||
|
$scope.item.envVars = func.environment;
|
||||||
|
|
||||||
$scope.selectedFunc = func;
|
$scope.selectedFunc = func;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,6 +183,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
|
|||||||
item.service = "";
|
item.service = "";
|
||||||
item.envProcess = "";
|
item.envProcess = "";
|
||||||
item.network = "";
|
item.network = "";
|
||||||
|
item.envVars = {};
|
||||||
|
|
||||||
$scope.validationError = "";
|
$scope.validationError = "";
|
||||||
$scope.closeDialog();
|
$scope.closeDialog();
|
||||||
showPostInvokedToast("Function created");
|
showPostInvokedToast("Function created");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user