From d5d293ed75da6fc4ea40c27871916a2ada9131c2 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Fri, 15 Nov 2024 14:02:58 -0500 Subject: [PATCH 1/2] reveal clock icon for users with specific role --- src/components/Packages/PackagePanel.js | 4 ++-- src/components/Packages/PackagePanelStateText.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Packages/PackagePanel.js b/src/components/Packages/PackagePanel.js index a47fceda..a98ce526 100755 --- a/src/components/Packages/PackagePanel.js +++ b/src/components/Packages/PackagePanel.js @@ -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'; @@ -49,7 +49,7 @@ class PackagePanel extends Component { let submittedDate = getLocalDateString(packageInfo.createdAt); let submittedTime = getLocalTimeString(packageInfo.createdAt); let { iconDataType, iconImage } = getDataTypeIconInfo(packageTypeIcons, packageInfo.packageType); - + console.log(this.props.userInformation) return (
} - { panelConfig.icon && + { this.props.currentUser?.roles.includes("uw_rit_kpmp_role_developer") && panelConfig.icon &&
From 4058e90ee5eb5ad57a1ca2c04e2e97fc5a5f9fac Mon Sep 17 00:00:00 2001 From: dert1129 Date: Fri, 15 Nov 2024 15:33:08 -0500 Subject: [PATCH 2/2] remove console.og --- src/components/Packages/PackagePanel.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Packages/PackagePanel.js b/src/components/Packages/PackagePanel.js index a98ce526..7a65e31e 100755 --- a/src/components/Packages/PackagePanel.js +++ b/src/components/Packages/PackagePanel.js @@ -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); - console.log(this.props.userInformation) return (