Commit 21902bd4 authored by Claudio Cambra's avatar 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
......@@ -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 = "";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment