wip
This commit is contained in:
parent
d6f08ca691
commit
78de092b06
|
@ -26,12 +26,6 @@ struct ContactsScreen: View {
|
||||||
)
|
)
|
||||||
|
|
||||||
// Contacts list
|
// Contacts list
|
||||||
contactsList
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ViewBuilder private var contactsList: some View {
|
|
||||||
if !clientsStore.actualRosters.isEmpty {
|
if !clientsStore.actualRosters.isEmpty {
|
||||||
List {
|
List {
|
||||||
ForEach(elements.indices, id: \.self) { index in
|
ForEach(elements.indices, id: \.self) { index in
|
||||||
|
@ -51,6 +45,8 @@ struct ContactsScreen: View {
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private var elements: [Any] {
|
private var elements: [Any] {
|
||||||
if clientsStore.clients.filter({ $0.credentials.isActive }).count == 1 {
|
if clientsStore.clients.filter({ $0.credentials.isActive }).count == 1 {
|
||||||
|
|
Loading…
Reference in a new issue