Skip to content

Commit

Permalink
[ENG-6424][ENG-6425] Enforce max length for displayName inputs (#2441)
Browse files Browse the repository at this point in the history
* enforece max length on displayName inputs

* stop long name overflow
  • Loading branch information
adlius authored Dec 28, 2024
1 parent 4eb30ab commit f43b9ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/guid-node/addons/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
data-test-configured-addon-name
local-class='configured-addon-display-name'
>
{{configuredAddon.displayName}}
<span>{{configuredAddon.displayName}}</span>
<span local-class='float-right'>
<Button
data-test-edit-connected-location={{configuredAddon.displayName}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
id={{displayNameId}}
placeholder={{t 'addons.accountCreate.display-name-placeholder'}}
@value={{this.displayName}}
@maxlength={{256}}
/>
{{/let}}
<div local-class='button-wrapper'>
Expand Down Expand Up @@ -138,6 +139,7 @@
local-class='input'
placeholder={{t 'addons.accountCreate.display-name-placeholder'}}
@value={{this.displayName}}
@maxlength={{256}}
/>
{{/let}}
{{#if this.connectAccountError}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
data-test-display-name-input
@type='text'
@value={{this.displayName}}
@maxlength={{256}}
/>
</label>
{{#if this.invalidDisplayName}}
Expand Down

0 comments on commit f43b9ea

Please sign in to comment.