From b01facbe733ec7b150f33aba85e5c111f5e1d632 Mon Sep 17 00:00:00 2001 From: "michal.kovacik" Date: Wed, 5 Oct 2016 12:44:39 +0200 Subject: [PATCH] Yangman - view switched to json when request is run from history - if "run request" was launched from history the view has been switched to json, even the form view has been selected. Now the selected view will remain after request execution Change-Id: Idc99e9fd32313d53dc2b5fb78e9f78e8acb67c47 Signed-off-by: michal.kovacik --- .../yangman/controllers/requests-list.controller.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/yangman-resources/src/main/resources/yangman/controllers/requests-list.controller.js b/modules/yangman-resources/src/main/resources/yangman/controllers/requests-list.controller.js index fdf08ab0..e2606116 100644 --- a/modules/yangman-resources/src/main/resources/yangman/controllers/requests-list.controller.js +++ b/modules/yangman-resources/src/main/resources/yangman/controllers/requests-list.controller.js @@ -260,7 +260,12 @@ define([ * @param reqObj */ function executeRequest(reqObj) { - showData(reqObj); + if ($scope.rightPanelSection === constants.DISPLAY_TYPE_FORM) { + showForm(reqObj); + } + else { + showData(reqObj); + } $scope.rootBroadcast(constants.YANGMAN_EXECUTE_WITH_DATA,{ data: reqObj.sentData }); } -- 2.36.6