diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-03-18 14:22:51 +0300 |
---|---|---|
committer | Denys Mishunov <dmishunov@gitlab.com> | 2019-03-18 15:59:16 +0300 |
commit | 1a2bdb4366ab819a43e2df48124073c836564e37 (patch) | |
tree | b05d7b6d464cef1bb1c6b38435c18d4fbcd4e52b /app/assets/javascripts | |
parent | bbbaa7078b62621f86030502bb1b317edea93039 (diff) |
Implemented trimming for item's name in Web IDE
Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/57540
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/ide/components/new_dropdown/modal.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/components/new_dropdown/modal.vue b/app/assets/javascripts/ide/components/new_dropdown/modal.vue index ba6bbdfef4b..412b07553dc 100644 --- a/app/assets/javascripts/ide/components/new_dropdown/modal.vue +++ b/app/assets/javascripts/ide/components/new_dropdown/modal.vue @@ -29,7 +29,7 @@ export default { return this.name || (entryPath ? `${entryPath}/` : ''); }, set(val) { - this.name = val; + this.name = val.trim(); }, }, modalTitle() { |