@@ -25,7 +25,6 @@ Item {
2525 signal allDepartmentClicked()
2626
2727 readonly property int itemHeight: units.gu(5)
28− readonly property bool isRoot: department && department.departmentId == ""
2928 implicitHeight: flickable.contentHeight
3029
3130 Rectangle {
@@ -52,14 +51,14 @@ Item {
5251
5352 anchors.fill: parent
5453
55− readonly property int nItems: department && department.loaded ? (department.count + (isRoot ? 0 : 2)) : 0
54+ readonly property int nItems: department && department.loaded ? (department.count + (department.isRoot ? 0 : 2)) : 0
5655 contentHeight: nItems * root.itemHeight
5756 contentWidth: width
5857
5958 AbstractButton {
6059 id: backButton
6160 width: parent.width
62− visible: department && !isRoot
61+ visible: department && !department.isRoot
6362 height: itemHeight
6463
6564 onClicked: root.goBackToParentClicked();
@@ -129,7 +128,7 @@ Item {
129128 delegate: AbstractButton {
130129 height: root.itemHeight
131130 width: root.width
132− y: ((isRoot ? 0 : 2) + index) * root.itemHeight
131+ y: ((department.isRoot ? 0 : 2) + index) * root.itemHeight
133132
134133 onClicked: root.enterDepartment(departmentId, hasChildren)
135134