do not change tab index when deleting unselected rpc setting in ariang settings page
This commit is contained in:
parent
851ef3087f
commit
c457807bf7
|
@ -177,7 +177,7 @@
|
|||
ariaNgSettingService.removeRpcSetting(setting);
|
||||
$scope.context.rpcSettings.splice(index, 1);
|
||||
|
||||
if (index >= $scope.context.rpcSettings.length) {
|
||||
if ($scope.isCurrentRpcTab(index) && index >= $scope.context.rpcSettings.length) {
|
||||
$scope.changeRpcTab($scope.context.rpcSettings.length - 1);
|
||||
}
|
||||
}, false, {
|
||||
|
|
Reference in a new issue