summaryrefslogtreecommitdiffstats
path: root/views/people/qml/People.qml
diff options
context:
space:
mode:
Diffstat (limited to 'views/people/qml/People.qml')
-rw-r--r--views/people/qml/People.qml53
1 files changed, 53 insertions, 0 deletions
diff --git a/views/people/qml/People.qml b/views/people/qml/People.qml
index 1a08d900..41acfba0 100644
--- a/views/people/qml/People.qml
+++ b/views/people/qml/People.qml
@@ -52,6 +52,10 @@ FocusScope {
52 } 52 }
53 text: "New Contact" 53 text: "New Contact"
54 visible: stack.depth == 1 54 visible: stack.depth == 1
55
56 onClicked: {
57 stack.push(personComposer)
58 }
55 } 59 }
56 60
57 Kube.IconButton { 61 Kube.IconButton {
@@ -217,6 +221,55 @@ FocusScope {
217 221
218 PersonPage { 222 PersonPage {
219 } 223 }
224
225 Kube.Button {
226
227 anchors {
228 bottom: parent.bottom
229 right: parent.right
230 margins: Kube.Units.largeSpacing
231 }
232
233 text: "Edit"
234
235 onClicked: {
236 stack.push(personComposer)
237 }
238 }
239 }
240 }
241
242
243 Component {
244 id: personComposer
245
246 Rectangle {
247 id: personComposerRoot
248
249 Kube.ContactController {
250 id: contactController
251 contact: ""
252 }
253
254 color: Kube.Colors.viewBackgroundColor
255
256 PersonComposer {
257 }
258
259 Kube.PositiveButton {
260
261 anchors {
262 bottom: parent.bottom
263 right: parent.right
264 margins: Kube.Units.largeSpacing
265 }
266
267 text: "Save"
268
269 onClicked: {
270 stack.pop()
271 }
272 }
220 } 273 }
221 } 274 }
222} 275}