Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reveal clock icon for users with specific role #395

Merged
merged 2 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading