From 86a1eaadf188b0879ae41a5fa125649ad51f0118 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Tue, 28 Jun 2016 11:30:55 -0700 Subject: [PATCH] Enforce 30 character limit on wallet name. --- CHANGELOG.md | 1 + ui/app/components/editable-label.js | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 113bf1ab7..86671c9cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Fixed bug where MetaMask interfered with PDF loading. - Moved switch account icon into menu bar. +- Now enforce 30 character limit on wallet names. ## 2.4.4 2016-06-23 diff --git a/ui/app/components/editable-label.js b/ui/app/components/editable-label.js index 3d7ca17d4..6b3e8cb28 100644 --- a/ui/app/components/editable-label.js +++ b/ui/app/components/editable-label.js @@ -18,6 +18,7 @@ EditableLabel.prototype.render = function () { return h('div.editable-label', [ h('input.sizing-input', { defaultValue: props.textValue, + maxLength: "30", onKeyPress: (event) => { this.saveIfEnter(event) },