Skip to content

Commit a4d9341

Browse files
committed
fix: review feedback
1 parent 1e3a71c commit a4d9341

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

packages/ui/src/views/agentexecutions/ExecutionDetails.jsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -791,23 +791,21 @@ export const ExecutionDetails = ({ open, isPublic, execution, metadata, onClose,
791791
)}
792792

793793
{!isPublic && localMetadata.isPublic && (
794-
<Available permission='executions:update'>
795-
<Chip
796-
sx={{ ml: 1, pl: 1 }}
797-
icon={
798-
updateExecutionApi.loading ? (
799-
<IconLoader size={15} className='spin-animation' />
800-
) : (
801-
<IconWorld size={15} />
802-
)
803-
}
804-
variant='outlined'
805-
label={updateExecutionApi.loading ? 'Updating...' : 'Public'}
806-
className={'button'}
807-
onClick={() => setShowShareDialog(true)}
808-
disabled={updateExecutionApi.loading}
809-
/>
810-
</Available>
794+
<Chip
795+
sx={{ ml: 1, pl: 1 }}
796+
icon={
797+
updateExecutionApi.loading ? (
798+
<IconLoader size={15} className='spin-animation' />
799+
) : (
800+
<IconWorld size={15} />
801+
)
802+
}
803+
variant='outlined'
804+
label={updateExecutionApi.loading ? 'Updating...' : 'Public'}
805+
className={'button'}
806+
onClick={() => setShowShareDialog(true)}
807+
disabled={updateExecutionApi.loading}
808+
/>
811809
)}
812810

813811
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', alignContent: 'center' }}>

0 commit comments

Comments
 (0)