File tree Expand file tree Collapse file tree 4 files changed +2
-25
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]
panel/components/deploy/components/deploy-modal/components/a2a Expand file tree Collapse file tree 4 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export interface CanvasMenuProps {
2626 onOpenLogs : ( ) => void
2727 onToggleVariables : ( ) => void
2828 onToggleChat : ( ) => void
29- onInvite : ( ) => void
3029 isVariablesOpen ?: boolean
3130 isChatOpen ?: boolean
3231 hasClipboard ?: boolean
@@ -55,15 +54,12 @@ export function CanvasMenu({
5554 onOpenLogs,
5655 onToggleVariables,
5756 onToggleChat,
58- onInvite,
5957 isVariablesOpen = false ,
6058 isChatOpen = false ,
6159 hasClipboard = false ,
6260 disableEdit = false ,
63- disableAdmin = false ,
6461 canUndo = false ,
6562 canRedo = false ,
66- isInvitationsDisabled = false ,
6763} : CanvasMenuProps ) {
6864 return (
6965 < Popover
@@ -179,22 +175,6 @@ export function CanvasMenu({
179175 >
180176 { isChatOpen ? 'Close Chat' : 'Open Chat' }
181177 </ PopoverItem >
182-
183- { /* Admin action - hidden when invitations are disabled */ }
184- { ! isInvitationsDisabled && (
185- < >
186- < PopoverDivider />
187- < PopoverItem
188- disabled = { disableAdmin }
189- onClick = { ( ) => {
190- onInvite ( )
191- onClose ( )
192- } }
193- >
194- Invite to Workspace
195- </ PopoverItem >
196- </ >
197- ) }
198178 </ PopoverContent >
199179 </ Popover >
200180 )
Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ export function Chat() {
887887 >
888888 { shouldShowConfigureStartInputsButton && (
889889 < div
890- className = 'flex flex-none cursor-pointer items-center whitespace-nowrap rounded-[6px] border border-[var(--border-1)] bg-[var(--surface-5)] px-[9px] py-[2px] font-sans text-[12px] font-medium text-[var(--text-primary)] hover:bg-[var(--surface-7)] dark:hover:border-[var(--surface-7)] dark:hover:bg-[var(--border-1)]'
890+ className = 'flex flex-none cursor-pointer items-center whitespace-nowrap rounded-[6px] border border-[var(--border-1)] bg-[var(--surface-5)] px-[9px] py-[2px] font-medium font- sans text-[12px] text-[var(--text-primary)] hover:bg-[var(--surface-7)] dark:hover:border-[var(--surface-7)] dark:hover:bg-[var(--border-1)]'
891891 title = 'Add chat inputs to Start block'
892892 onMouseDown = { ( e ) => {
893893 e . stopPropagation ( )
Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ console.log(data);`
883883 </ p >
884884 { missingFields . any && (
885885 < div
886- className = 'flex flex-none cursor-pointer items-center whitespace-nowrap rounded-[6px] border border-[var(--border-1)] bg-[var(--surface-5)] px-[9px] py-[2px] font-sans text-[12px] font-medium text-[var(--text-primary)] hover:bg-[var(--surface-7)] dark:hover:border-[var(--surface-7)] dark:hover:bg-[var(--border-1)]'
886+ className = 'flex flex-none cursor-pointer items-center whitespace-nowrap rounded-[6px] border border-[var(--border-1)] bg-[var(--surface-5)] px-[9px] py-[2px] font-medium font- sans text-[12px] text-[var(--text-primary)] hover:bg-[var(--surface-7)] dark:hover:border-[var(--surface-7)] dark:hover:bg-[var(--border-1)]'
887887 title = 'Add required A2A input fields to Start block'
888888 onClick = { handleAddA2AInputs }
889889 >
Original file line number Diff line number Diff line change @@ -3323,15 +3323,12 @@ const WorkflowContent = React.memo(() => {
33233323 onOpenLogs = { handleContextOpenLogs }
33243324 onToggleVariables = { handleContextToggleVariables }
33253325 onToggleChat = { handleContextToggleChat }
3326- onInvite = { handleContextInvite }
33273326 isVariablesOpen = { isVariablesOpen }
33283327 isChatOpen = { isChatOpen }
33293328 hasClipboard = { hasClipboard ( ) }
33303329 disableEdit = { ! effectivePermissions . canEdit }
3331- disableAdmin = { ! effectivePermissions . canAdmin }
33323330 canUndo = { canUndo }
33333331 canRedo = { canRedo }
3334- isInvitationsDisabled = { isInvitationsDisabled }
33353332 />
33363333 </ >
33373334 ) }
You can’t perform that action at this time.
0 commit comments