Skip to content

Commit

Permalink
Allow paste space location
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Aug 6, 2021
1 parent f495cf5 commit 897f4b6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/organisms/FSStorageCreateForm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useCallback } from 'react'
import React, { useState, useCallback, ChangeEvent } from 'react'
import { useTranslation } from 'react-i18next'
import { useRouter } from '../../lib/router'
import { useDb } from '../../lib/db'
Expand Down Expand Up @@ -69,13 +69,11 @@ const FSStorageCreateForm = () => {
<ButtonGroup>
<FormFolderSelectorInput
type='text'
onClick={openDialogAndStoreLocation}
readOnly
value={
location.trim().length === 0
? t('folder.noLocationSelected')
: location
}
onChange={(event: ChangeEvent<HTMLInputElement>) => {
setLocation(event.target.value)
}}
placeholder={t('folder.noLocationSelected')}
value={location}
/>
<FormFolderSelectButtonContainer>
<Button
Expand Down

0 comments on commit 897f4b6

Please sign in to comment.