mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 01:31:04 +00:00
Reset selection on notifications requests batch
This commit is contained in:
parent
1566dd8cd1
commit
8ce2476945
1 changed files with 10 additions and 2 deletions
|
@ -92,7 +92,11 @@ public struct NotificationsRequestsListView: View {
|
|||
}
|
||||
.buttonStyle(.bordered)
|
||||
Button {
|
||||
Task { await acceptSelectedRequests(client) }
|
||||
Task {
|
||||
await acceptSelectedRequests(client)
|
||||
isInSelectMode = false
|
||||
selectedRequests.removeAll()
|
||||
}
|
||||
} label: {
|
||||
Text("Accept")
|
||||
}
|
||||
|
@ -100,7 +104,11 @@ public struct NotificationsRequestsListView: View {
|
|||
.buttonStyle(.borderedProminent)
|
||||
|
||||
Button {
|
||||
Task { await rejectSelectedRequests(client) }
|
||||
Task {
|
||||
await rejectSelectedRequests(client)
|
||||
isInSelectMode = false
|
||||
selectedRequests.removeAll()
|
||||
}
|
||||
} label: {
|
||||
Text("Reject")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue