Fixed custom slug field not being disabled when selecting a short code length

This commit is contained in:
Alejandro Celaya 2020-08-30 19:50:40 +02:00
parent 8a9c694fbc
commit 84fc82b74e
2 changed files with 4 additions and 2 deletions

View file

@ -24,7 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
#### Fixed #### Fixed
* *Nothing* * [#295](https://github.com/shlinkio/shlink-web-client/issues/295) Fixed custom slug field not being disabled when selecting a short code length.
## 2.5.1 - 2020-06-06 ## 2.5.1 - 2020-06-06

View file

@ -108,7 +108,9 @@ const CreateShortUrl = (
<div className="row"> <div className="row">
<div className="col-sm-4"> <div className="col-sm-4">
{renderOptionalInput('customSlug', 'Custom slug')} {renderOptionalInput('customSlug', 'Custom slug', 'text', {
disabled: hasValue(shortUrlCreation.shortCodeLength),
})}
</div> </div>
<div className="col-sm-4"> <div className="col-sm-4">
{renderOptionalInput('shortCodeLength', 'Short code length', 'number', { {renderOptionalInput('shortCodeLength', 'Short code length', 'number', {