mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
fix
This commit is contained in:
parent
d4b436dd31
commit
82a8b096fa
2 changed files with 8 additions and 4 deletions
|
|
@ -120,8 +120,12 @@ function EditAppName({ appId, appName = '', onNameChanged }) {
|
|||
</ToolTip>
|
||||
<InfoOrErrorBox
|
||||
active={isError || isEditing}
|
||||
message={errorMessage || warningText || 'App name should be unique and max 50 characters'}
|
||||
isWarning={warningText}
|
||||
message={
|
||||
errorMessage || warningText || name.length >= 50
|
||||
? 'Maximum length has been reached'
|
||||
: 'App name should be unique and max 50 characters'
|
||||
}
|
||||
isWarning={warningText || name.length >= 50}
|
||||
isError={isError}
|
||||
darkMode={darkMode}
|
||||
additionalClassName={isError ? 'error' : ''}
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ export function AppModal({
|
|||
>
|
||||
{errorText}
|
||||
</small>
|
||||
) : infoText ? (
|
||||
) : infoText || newAppName.length >= 50 ? (
|
||||
<small
|
||||
className="tj-input-error"
|
||||
style={{
|
||||
|
|
@ -167,7 +167,7 @@ export function AppModal({
|
|||
color: '#ED5F00',
|
||||
}}
|
||||
>
|
||||
{infoText}
|
||||
{infoText || 'Maximum length has been reached'}
|
||||
</small>
|
||||
) : (
|
||||
<small
|
||||
|
|
|
|||
Loading…
Reference in a new issue