Fixed bugs.
This commit is contained in:
@@ -18,23 +18,17 @@ const RenderUsage = ({data}) => {
|
||||
User: {next.person.firstName} {next.person.lastName} {next.person.grade ? "~ " + next.person.grade : ""} (<Link to={"/search?email=" + encodeURIComponent(next.email)}>{next.email}</Link>)<br/>
|
||||
</>
|
||||
)}
|
||||
Device ID: <Link to={"/search?deviceId=" + encodeURIComponent(next.deviceId)}>{next.deviceId}</Link><br/>
|
||||
{/*Device ID: <Link to={"/search?deviceId=" + encodeURIComponent(next.deviceId)}>{next.deviceId}</Link><br/>*/}
|
||||
{next.assetType && (
|
||||
<>Asset Type: {next.assetType.name}<br/></>
|
||||
)}
|
||||
Serial: <Link to={"/search?serial=" + encodeURIComponent(next.serial)}>{next.serial}</Link><br/>
|
||||
{next.asset && (
|
||||
<>
|
||||
Asset ID: <Link to={"/search?assetId=" + encodeURIComponent(next.asset.assetId)}>{next.asset.assetId}</Link><br/>
|
||||
</>
|
||||
)}
|
||||
{new Date(next.startTime).toLocaleDateString("en-US") + "-" + new Date(next.endTime).toLocaleDateString("en-US")}
|
||||
{next.assetType && (
|
||||
<>
|
||||
<br/>Asset Type: {next.assetType.name}
|
||||
</>
|
||||
<>Asset ID: <Link to={"/search?assetId=" + encodeURIComponent(next.asset.assetId)}>{next.asset.assetId}</Link><br/></>
|
||||
)}
|
||||
{new Date(next.startTime).toLocaleDateString("en-US") + "-" + new Date(next.endTime).toLocaleDateString("en-US")}<br/>
|
||||
{next.assignedTo && (
|
||||
<>
|
||||
<br/>Currently assigned to: {next.assignedTo.firstName} {next.assignedTo.lastName} {next.assignedTo.grade ? "~ " + next.assignedTo.grade : ""} ({next.assignedTo.email})
|
||||
</>
|
||||
<>Currently assigned to: {next.assignedTo.firstName} {next.assignedTo.lastName} {next.assignedTo.grade ? "~ " + next.assignedTo.grade : ""} ({next.assignedTo.email})</>
|
||||
)}
|
||||
</li>
|
||||
))}
|
||||
@@ -66,15 +60,15 @@ const RenderAssignments = ({data}) => {
|
||||
</>
|
||||
)}
|
||||
{new Date(next.startDate).toLocaleDateString("en-US") + (next.endDate ? "-" + new Date(next.endDate).toLocaleDateString("en-US") : " - Still Assigned")}<br/>
|
||||
{next.endDate && (
|
||||
{next.comment && (
|
||||
<>Comment: {next.comment}<br/></>
|
||||
)}
|
||||
Start Condition: {next.startCondition}<br/>
|
||||
Details: {next.startConditionDetails}<br/>
|
||||
{next.startConditionDetails && <>Details: {next.startConditionDetails}<br/></>}
|
||||
{next.endDate && (
|
||||
<>
|
||||
End Condition: {next.endCondition}<br/>
|
||||
Details: {next.endConditionDetails}<br/>
|
||||
{next.endConditionDetails && <>Details: {next.endConditionDetails}<br/></>}
|
||||
</>
|
||||
)}
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user