Skip to content

Commit

Permalink
Merge pull request #395 from KPMP/KPMP-5445_allow-new-user-to-see-link
Browse files Browse the repository at this point in the history
reveal clock icon for users with specific role
  • Loading branch information
HaneenT authored Nov 15, 2024
2 parents 7160e67 + 4058e90 commit 3caf2ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/Packages/PackagePanel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Col, Row } from 'reactstrap';
import { Button, Col, Row } from 'reactstrap';
import { getLocalDateString, getLocalTimeString } from '../../helpers/timezoneUtil';
import { shouldColorRow } from './attachmentsModalRowHelper.js';
import { getDataTypeIconInfo } from './dataTypeIconHelper.js';
Expand Down Expand Up @@ -49,7 +49,6 @@ class PackagePanel extends Component {
let submittedDate = getLocalDateString(packageInfo.createdAt);
let submittedTime = getLocalTimeString(packageInfo.createdAt);
let { iconDataType, iconImage } = getDataTypeIconInfo(packageTypeIcons, packageInfo.packageType);

return (
<section className='package'>
<Row className={
Expand Down
2 changes: 1 addition & 1 deletion src/components/Packages/PackagePanelStateText.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class PackagePanelStateText extends Component {
}
</div>
}
{ panelConfig.icon &&
{ this.props.currentUser?.roles.includes("uw_rit_kpmp_role_developer") && panelConfig.icon &&
<span onClick={clickEvent}>
<div className='additional-icon clickable'><FontAwesomeIcon className='float-right' icon={panelConfig.icon} size='lg' inverse/></div>
</span>
Expand Down

0 comments on commit 3caf2ee

Please sign in to comment.