summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/AddresseeListEditor.qml43
1 files changed, 31 insertions, 12 deletions
diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml
index a1fb30d1..a4f1a207 100644
--- a/components/kube/contents/ui/AddresseeListEditor.qml
+++ b/components/kube/contents/ui/AddresseeListEditor.qml
@@ -71,19 +71,38 @@ Item {
71 } 71 }
72 } 72 }
73 } 73 }
74 Kube.AutocompleteLineEdit { 74
75 id: lineEdit 75 MouseArea {
76 anchors { 76 height: Kube.Units.gridUnit * Kube.Units.smallSpacing * 2
77 left: parent.left 77 width: parent.width
78 right: parent.right 78 hoverEnabled: true
79
80 onClicked: lineEdit.visible = true
81
82 Kube.Label {
83 text: "Add recipient"
84 color: Kube.Colors.highlightColor
85 font.underline: parent.containsMouse
79 } 86 }
80 placeholderText: "Add recepient" 87
81 model: root.completer.model 88 Kube.AutocompleteLineEdit {
82 onSearchTermChanged: root.completer.searchString = searchTerm 89 id: lineEdit
83 onAccepted: { 90 anchors {
84 root.added(text); 91 left: parent.left
85 console.warn("Accepted input: ", text) 92 right: parent.right
86 clear() 93 }
94
95 visible: false
96
97 placeholderText: "Add recepient"
98 model: root.completer.model
99 onSearchTermChanged: root.completer.searchString = searchTerm
100 onAccepted: {
101 root.added(text);
102 console.warn("Accepted input: ", text)
103 clear()
104 visible = false
105 }
87 } 106 }
88 } 107 }
89 } 108 }