From: michal.kovacik Date: Wed, 5 Oct 2016 10:44:39 +0000 (+0200) Subject: Yangman - view switched to json when request is run from history X-Git-Tag: release/carbon~16^2~1 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=b01facbe733ec7b150f33aba85e5c111f5e1d632;p=dlux.git 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 --- 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 }); }