Skip to content

Commit e23f609

Browse files
committed
Only show location when moving
1 parent 7623b1d commit e23f609

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

resources/scripts/components/server/files/RenameFileModal.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ export default ({ file, useMoveTerminology, ...props }: Props) => {
4242
{({ isSubmitting, values }) => (
4343
<Modal {...props} dismissable={!isSubmitting} showSpinnerOverlay={isSubmitting}>
4444
<Form className={'m-0'}>
45-
<div className={classNames('flex', {
46-
'items-center': useMoveTerminology,
47-
'items-end': !useMoveTerminology,
48-
})}>
45+
<div
46+
className={classNames('flex', {
47+
'items-center': useMoveTerminology,
48+
'items-end': !useMoveTerminology,
49+
})}
50+
>
4951
<div className={'flex-1 mr-6'}>
5052
<Field
5153
type={'string'}
@@ -65,10 +67,12 @@ export default ({ file, useMoveTerminology, ...props }: Props) => {
6567
</button>
6668
</div>
6769
</div>
70+
{useMoveTerminology &&
6871
<p className={'text-xs mt-2 text-neutral-400'}>
6972
<strong className={'text-neutral-200'}>New location:</strong>
7073
&nbsp;/home/container/{join(directory, values.name).replace(/^(\.\.\/|\/)+/, '')}
7174
</p>
75+
}
7276
</Form>
7377
</Modal>
7478
)}

0 commit comments

Comments
 (0)