Skip to content

Commit

Permalink
Merge pull request #13 from susom/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Jordan-M-Schultz authored Feb 13, 2025
2 parents 65ee6ca + d137807 commit 782aa87
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
23 changes: 13 additions & 10 deletions IntakeDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ public function __construct()

}

// public function setModuleCore(){
// $moduleCore = new ModuleCore($this);
// }
//
// public function getModuleCore(){
// if(!$this->moduleCore)
// $this->setModuleCore(new ModuleCore($this));
// return $this->moduleCore;
// }
/**
* //Required for link-based access from control panel (non-admin)
* @param $project_id
* @param $link
* @return mixed|null
*/
function redcap_module_link_check_display($project_id, $link)
{
if(empty($_SESSION['username']))
return null;
return $link;
}


/**
* Helper method for inserting the JSMO JS into a page along with any preload data
Expand Down Expand Up @@ -424,7 +428,6 @@ public function saveUser($username, $universalId)
$saveData = [
[
"record_id" => $username,
"type" => "Secondary",
"intake_id" => $universalId,
"redcap_event_name" => $event_name,
"redcap_repeat_instrument" => $form_name,
Expand Down
9 changes: 8 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@
"enable-no-auth-logging": true,

"links": {
"project": [],
"project": [
{
"name": "Intake Dashboard",
"icon": "gear",
"url" : "pages/root.php",
"show-header-and-footer": false
}
],
"control-center": [
{
"name": "Intake Dashboard",
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dashboard-ui/src/views/ChildContent/childContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function ChildContent({childInfo, immutableParentInfo, mutableParentInfo}
>Confirm</Button>
</div>
</Modal>
<LoadingOverlay visible={loading} loaderProps={{ children: 'Loading...' }} />
<LoadingOverlay visible={loading} loaderProps={{ type: 'dots', size:"md" }} overlayProps={{ blur: 2 }} />
{renderRequestButton()}
<Modal size="80%" opened={childOpened} onClose={childClose} title="Child Intake Submission">
{childOpened && renderChildModal()}
Expand Down

0 comments on commit 782aa87

Please sign in to comment.