- Bug 6545 - Yangman - auto-switch to json view
- fix reworked
Change-Id: I9176fa99aedd7c6b45103400d183e49e4e869b7e
Signed-off-by: michal.kovacik <mikovaci@cisco.com>
$scope.rootBroadcast(constants.YANGMAN_DESELECT_REQUESTS, { broadcastingCtrl: vm });
vm.mainList.toggleReqSelection(!event.ctrlKey, requestObj);
if (!event.ctrlKey){
- vm.showData(requestObj, true);
+ if ($scope.rightPanelSection === constants.DISPLAY_TYPE_FORM) {
+ vm.showForm(requestObj, true);
+ }
+ else {
+ vm.showData(requestObj, true);
+ }
}
}