summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/AddresseeListEditor.qml18
1 files changed, 7 insertions, 11 deletions
diff --git a/components/kube/contents/ui/AddresseeListEditor.qml b/components/kube/contents/ui/AddresseeListEditor.qml
index 873e0c6c..1f106dfd 100644
--- a/components/kube/contents/ui/AddresseeListEditor.qml
+++ b/components/kube/contents/ui/AddresseeListEditor.qml
@@ -78,20 +78,18 @@ Item {
78 } 78 }
79 } 79 }
80 80
81 MouseArea { 81 Item {
82 height: Kube.Units.gridUnit * Kube.Units.smallSpacing * 2 82 height: Kube.Units.gridUnit * Kube.Units.smallSpacing * 2
83 width: parent.width 83 width: parent.width
84 hoverEnabled: true
85 84
86 onClicked: { 85 Kube.TextButton {
87 lineEdit.visible = true 86 id: button
88 lineEdit.forceActiveFocus()
89 }
90
91 Kube.Label {
92 text: "+ " + qsTr("Add recipient") 87 text: "+ " + qsTr("Add recipient")
93 color: Kube.Colors.highlightColor 88 color: Kube.Colors.highlightColor
94 font.underline: parent.containsMouse 89 onClicked: {
90 lineEdit.visible = true
91 lineEdit.forceActiveFocus()
92 }
95 } 93 }
96 94
97 Kube.AutocompleteLineEdit { 95 Kube.AutocompleteLineEdit {
@@ -100,7 +98,6 @@ Item {
100 left: parent.left 98 left: parent.left
101 right: parent.right 99 right: parent.right
102 } 100 }
103
104 visible: false 101 visible: false
105 102
106 placeholderText: "+ " + qsTr("Add recipient") 103 placeholderText: "+ " + qsTr("Add recipient")
@@ -108,7 +105,6 @@ Item {
108 onSearchTermChanged: root.completer.searchString = searchTerm 105 onSearchTermChanged: root.completer.searchString = searchTerm
109 onAccepted: { 106 onAccepted: {
110 root.added(text); 107 root.added(text);
111 console.warn("Accepted input: ", text)
112 clear() 108 clear()
113 visible = false 109 visible = false
114 } 110 }