Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
21902bd4
Commit
21902bd4
authored
Dec 06, 2021
by
Claudio Cambra
Browse files
Strip carriage returns from new tag names and add max number of characters, fixing bug
parent
299a99e2
Pipeline
#106188
passed with stage
in 23 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/TagManagerPage.qml
View file @
21902bd4
...
...
@@ -108,6 +108,7 @@ Kirigami.ScrollablePage {
id
:
newTagField
Layout.fillWidth
:
true
placeholderText
:
i18n
(
"
Create a New Tag…
"
)
maximumLength
:
50
background
:
Rectangle
{
Kirigami.Theme.inherit
:
false
Kirigami.Theme.colorSet
:
Kirigami
.
Theme
.
Window
...
...
@@ -123,7 +124,7 @@ Kirigami.ScrollablePage {
function
addTag
()
{
if
(
newTagField
.
text
.
length
>
0
)
{
TagManager
.
createTag
(
newTagField
.
text
);
TagManager
.
createTag
(
newTagField
.
text
.
replace
(
/
\r?\n
|
\r
/g
,
"
"
)
);
newTagField
.
text
=
""
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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