Skip to content

Commit

Permalink
Tags Cause Posts to Be Read (#479)
Browse files Browse the repository at this point in the history
* Removed Sort From Batch Mode

* Makes it so that Updating Groups in the Show View results in an instant change

Co-authored-by: Matthew Lim <limmat@gatech.edu>
  • Loading branch information
Matthew Lim and Matthew Lim committed Apr 7, 2021
1 parent b4049ed commit 61cf8cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions public/angular/js/controllers/incidents/report_incident_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,19 @@ angular.module('Aggie')
if (!reports) {
reports = $scope.filterSelected($scope.reports);
}

return reports;
}
}
});

modalInstance.result.then(function(incidentId) {
modalInstance.result.then(function(incident) {
var ids = reports.map(function(report) {
return report._id;
});
Report.linkToIncident({ ids: ids, incident: incidentId });
reports.forEach(function(report) {
report._incident = incident._id;
})
Report.linkToIncident({ ids: ids, incident: incident._id });
});
};
}
Expand Down Expand Up @@ -85,7 +87,7 @@ angular.module('Aggie')

$scope.select = function(incident) {
// report._incident = incident._id;
$modalInstance.close(incident._id);
$modalInstance.close(incident);
};

$scope.showErrors = function() {
Expand Down

0 comments on commit 61cf8cf

Please sign in to comment.