2import Lomiri.Components 1.3
3import Dekko.Contacts 1.0
4import Dekko.Lomiri.Components 1.0
5import "../../actions/views"
6import Dekko.Lomiri.Constants 1.0
12 title: qsTr("Addressbooks")
16 ViewActions.popStage()
27 model: ContactsStore.addressBooksModel
34 height: contents.height
35 property var addressbook: model.qtObject
41 topMargin: units.gu(1)
51 leftMargin: units.gu(2)
52 verticalCenter: parent.verticalCenter
54 text: addressbook.displayName
55 color: Suru.secondaryForegroundColor
60 height: configLayout.height
61 divider.visible:
false
62 visible: !addressbook.collections.count
65 title.text: qsTr(
"Add Collection")
70 model: addressbook ? addressbook.collections : null
75 title.text: model.name
80 SlotsLayout.position: SlotsLayout.Leading
84 onClicked: ContactActions.setSelectedAddressBook(model.index)
85 divider.visible:
false
92 leftMargin: units.gu(7)