Skip to content

Commit

Permalink
Merge pull request #67 from ucdavis/cyd/shannonchanges22
Browse files Browse the repository at this point in the history
new # count and reverse order on columns
  • Loading branch information
srkirkland authored Nov 15, 2022
2 parents e09271e + f3fcf1a commit 0eac7e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AD419/ClientApp/src/components/NavMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const NavMenu = (): JSX.Element => {
>
<a className='navbar-brand logo text-left' href='/'>
AD419 <br />
<span className='secondary-font current-year'>Fiscal Year 2021</span>
<span className='secondary-font current-year'>Fiscal Year 2022</span>
</a>

<NavbarToggler onClick={toggleNavbar} className='mr-2' />
Expand Down
14 changes: 10 additions & 4 deletions src/AD419/ClientApp/src/components/associations/ProjectsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ export default function ProjectsTable(props: Props): JSX.Element {
};

const areAllSelected = (): boolean => {
return props.selectedAssociations.length > 0 && props.selectedAssociations.length === props.projects.length;
}
return (
props.selectedAssociations.length > 0 &&
props.selectedAssociations.length === props.projects.length
);
};

const toggleSelectAll = (): void => {
const shouldUnassignAll = areAllSelected();
Expand Down Expand Up @@ -84,8 +87,11 @@ export default function ProjectsTable(props: Props): JSX.Element {
></input>
</th>
<th>{total.toFixed(2)} %</th>
<th>Project</th>
<th>PI</th>
<th>
Project ({props.selectedAssociations.length} of{' '}
{props.projects.length})
</th>
</tr>
</thead>
<tbody>
Expand All @@ -107,8 +113,8 @@ export default function ProjectsTable(props: Props): JSX.Element {
projectPercentageChange={props.projectPercentageChange}
></PercentInput>
</td>
<td>{proj.project}</td>
<td>{proj.pi}</td>
<td>{proj.project}</td>
</tr>
))}
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/AD419/Controllers/SummaryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async Task<IActionResult> GetExpensesBySFN(string code, string accession,
{
return Ok(await conn.QueryAsync<SFNSummary>("usp_GetExpensesBySFN",
new { OrgR = code, Accession = accession, IntAssociationStatus = associationStatus },
commandType: CommandType.StoredProcedure));
commandType: CommandType.StoredProcedure, commandTimeout: 120));
}
}
}
Expand Down

0 comments on commit 0eac7e4

Please sign in to comment.