Skip to content

Commit

Permalink
(update) : added enableAI flag for visibilty of chat button
Browse files Browse the repository at this point in the history
  • Loading branch information
sohitkumar committed Oct 22, 2024
1 parent 1e3077c commit ce0c5ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/features/default/src/Components/Resources/ResourceCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import { TbEditCircle } from "react-icons/tb";
import { CgDetailsMore } from "react-icons/cg";
import { IoMdMore } from "react-icons/io";
import UrlConstant from "../../Constants/UrlConstants";
import globalConfig from "globalConfig";

const cardSx = {
maxWidth: 368,
Expand Down Expand Up @@ -318,6 +319,7 @@ const ResourceCard = ({
</span>
</div>
{getTokenLocal() &&
globalConfig.enableAI &&
(isLoggedInUserAdmin() ||
isLoggedInUserCoSteward() ||
isLoggedInUserParticipant()) ? (
Expand Down
1 change: 1 addition & 0 deletions src/features/default/src/Views/Resources/ViewResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,7 @@ const ViewResource = (props) => {
</Row>
</Box>
{getTokenLocal() &&
globalConfig.enableAI &&
(isLoggedInUserAdmin() ||
isLoggedInUserCoSteward() ||
isLoggedInUserParticipant()) ? (
Expand Down

0 comments on commit ce0c5ab

Please sign in to comment.