src/static/js/admin-status.js
// Approve or deny a user status change request
Approve or deny a user status change request
Approve or deny a user status change request
function approveStatus(requestID, approved) {
  $.ajax({
    url: "/api/approveStatusChangeRequest",
    data: {
      requestID,
      approved,
    },
    success: () => {
      hideError();
      updateNotifications();
      populateStatuses();
    },
    error: () => {
      showError("Failed to approve/deny status change request");
    },
  });
}
function approveStatus ( requestID , approved ) { $ . ajax ( { url : "/api/approveStatusChangeRequest" , data : { requestID , approved , } , success : ( ) => { hideError ( ) ; updateNotifications ( ) ; populateStatuses ( ) ; } , error : ( ) => { showError ( "Failed to approve/deny status change request" ) ; } , } ) ; }
Approve or deny a user status change request
Approve or deny a user status change request