From ae88dfd997ae0516ec097033c378740ea8580483 Mon Sep 17 00:00:00 2001 From: thuva4 Date: Thu, 30 Nov 2017 14:44:45 +0530 Subject: redesign the pods interface redesign the pods interface and add the delate operation for the podas in backend. Fix the issue in creating pods: Owner is null Change-Id: I2f8e907f9ab62362a3003d6457662ab85bf2cb12 Signed-off-by: thuva4 --- testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js') diff --git a/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js b/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js index aba205e..fc0bfe6 100644 --- a/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js +++ b/testapi/opnfv_testapi/ui/shared/alerts/confirmModalFactory.js @@ -11,7 +11,7 @@ * Opens confirm modal dialog with input textbox */ function confirmModal($uibModal) { - return function(text, successHandler) { + return function(text, successHandler, name) { $uibModal.open({ templateUrl: '/testapi-ui/shared/alerts/confirmModal.html', controller: 'CustomConfirmModalController as confirmModal', @@ -20,7 +20,8 @@ data: function () { return { text: text, - successHandler: successHandler + successHandler: successHandler, + name: name }; } } @@ -45,7 +46,7 @@ ctrl.cancel = cancel; ctrl.data = angular.copy(data); - + console.log(ctrl.data) /** * Initiate confirmation and call the success handler with the * input text. @@ -53,7 +54,7 @@ function confirm() { $uibModalInstance.close(); if (angular.isDefined(ctrl.data.successHandler)) { - ctrl.data.successHandler(ctrl.inputText); + ctrl.data.successHandler(ctrl.data.name); } } -- cgit 1.2.3-korg