do not change tab index when deleting unselected rpc setting in ariang settings page

This commit is contained in:
MaysWind 2018-06-18 22:12:26 +08:00
parent 851ef3087f
commit c457807bf7

View file

@ -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, {