From ca34fd0ed1d90fe38cde37826eafc6d723f1ebd9 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Tue, 5 Dec 2017 18:20:28 -0600 Subject: [PATCH] Adds env-vars to store Signed-off-by: Alex Ellis --- gateway/assets/script/bootstrap.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gateway/assets/script/bootstrap.js b/gateway/assets/script/bootstrap.js index a706c218..4f79c125 100644 --- a/gateway/assets/script/bootstrap.js +++ b/gateway/assets/script/bootstrap.js @@ -26,7 +26,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md image: "", envProcess: "", network: "", - service: "" + service: "", + envVars: {} }; $scope.invocation.request = ""; @@ -150,6 +151,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md $scope.item.service = func.name; $scope.item.envProcess = func.fprocess; $scope.item.network = func.network; + $scope.item.envVars = func.environment; + $scope.selectedFunc = func; } @@ -180,6 +183,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md item.service = ""; item.envProcess = ""; item.network = ""; + item.envVars = {}; + $scope.validationError = ""; $scope.closeDialog(); showPostInvokedToast("Function created");