From d20700edb107f9142dd4a285f7abfa6b1bf49c01 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Tue, 30 Apr 2024 19:20:22 -0500 Subject: [PATCH] CE-882 - Turn off 'scope' for time being --- src/qqq/components/sharing/ShareModal.tsx | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/qqq/components/sharing/ShareModal.tsx b/src/qqq/components/sharing/ShareModal.tsx index 57c063e..3bfa7f4 100644 --- a/src/qqq/components/sharing/ShareModal.tsx +++ b/src/qqq/components/sharing/ShareModal.tsx @@ -24,9 +24,8 @@ import {QTableMetaData} from "@kingsrook/qqq-frontend-core/lib/model/metaData/QT import {QJobComplete} from "@kingsrook/qqq-frontend-core/lib/model/processes/QJobComplete"; import {QJobError} from "@kingsrook/qqq-frontend-core/lib/model/processes/QJobError"; import {QRecord} from "@kingsrook/qqq-frontend-core/lib/model/QRecord"; -import {Alert} from "@mui/material"; +import {Alert, Box} from "@mui/material"; import Autocomplete from "@mui/material/Autocomplete"; -import Box from "@mui/material/Box"; import Button from "@mui/material/Button"; import Card from "@mui/material/Card"; import Icon from "@mui/material/Icon"; @@ -376,7 +375,7 @@ export default function ShareModal({open, onClose, tableMetaData, record}: Share {/* todo move to helpContent (what do we attach the meta-data too??) */} Select a user or a group to share this record with. - You can choose if they should only be able to Read the record, or also make Edits to it. + {/*You can choose if they should only be able to Read the record, or also make Edits to it.*/} {alert && setAlert(null)}>{alert}} @@ -390,7 +389,7 @@ export default function ShareModal({open, onClose, tableMetaData, record}: Share {/* row for adding a new share */} - + - - {renderScopeDropdown("new-share-scope", defaultScope, handleScopeChange)} - + {/* + when turning scope back on, change width of audience box to 350px + + {renderScopeDropdown("new-share-scope", defaultScope, handleScopeChange)} + + */} @@ -429,8 +431,11 @@ export default function ShareModal({open, onClose, tableMetaData, record}: Share currentShares.map((share) => ( - {share.audienceLabel} - {renderScopeDropdown(`scope-${share.shareId}`, getScopeOption(share.scopeId), (event: React.SyntheticEvent, value: any | any[], reason: string) => editingExistingShareScope(share.shareId, value))} + {share.audienceLabel} + {/* + when turning scope back on, change width of audience box to 310px + {renderScopeDropdown(`scope-${share.shareId}`, getScopeOption(share.scopeId), (event: React.SyntheticEvent, value: any | any[], reason: string) => editingExistingShareScope(share.shareId, value))} + */}