Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
NPDD
baobaxia-ryru
Commits
0914e4f1
Commit
0914e4f1
authored
3 years ago
by
Diego Garcia Cordeiro Souza
Browse files
Options
Download
Email Patches
Plain Diff
Conversão de hashtags para lowercase no formulário de input
parent
471914d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/acervo/TagsFormInput.vue
+2
-1
src/components/acervo/TagsFormInput.vue
with
2 additions
and
1 deletion
+2
-1
src/components/acervo/TagsFormInput.vue
View file @
0914e4f1
...
...
@@ -61,10 +61,11 @@ export default {
methods
:
{
parseTags
()
{
// Add tag only after separating with a comma character
const
splittedTags
=
this
.
tagsText
.
split
(
'
,
'
)
if
(
splittedTags
.
length
>
1
)
{
this
.
tags
.
add
(
splittedTags
[
0
].
trim
())
this
.
tags
.
add
(
splittedTags
[
0
].
trim
()
.
toLowerCase
()
)
splittedTags
.
splice
(
0
,
1
)
this
.
tagsText
=
splittedTags
.
join
(
''
).
trim
().
toLowerCase
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help