Commit d3661685 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Main/ContactEdit): use `Connections` component

parent 613cfa2a
......@@ -277,18 +277,24 @@ ColumnLayout {
contentWidth: width - ScrollBar.vertical.width
flickableDirection: Flickable.VerticalFlick
Rectangle {
anchors.fill: parent
color: ContactEditStyle.content.color
}
// -----------------------------------------------------------------------
Connections {
target: _vcard
SmartConnect {
Component.onCompleted: this.connect(_vcard, 'onVcardUpdated', function () {
onVcardUpdated: {
addresses.setData(_vcard.sipAddresses)
companies.setData(_vcard.companies)
emails.setData(_vcard.emails)
urls.setData(_vcard.urls)
})
}
}
// -----------------------------------------------------------------------
Rectangle {
anchors.fill: parent
color: ContactEditStyle.content.color
}
ColumnLayout {
......
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