When entering the Manage Predictions or Manage Issues tab
and only one subscription is present in the current OU
scope, automatically select it rather than making the operator
have to select it manually.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
function reload() {
egSerialsCoreSvc.fetch($scope.bibId, $scope.selected_owning_ou).then(function() {
$scope.subscriptions = egCore.idl.toTypedHash(egSerialsCoreSvc.subTree);
+ if ($scope.subscriptions.length == 1 && !$scope.ssubId) {
+ $scope.ssubId = $scope.subscriptions[0].id;
+ }
});
}
}]