mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-24 00:54:23 +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)
|
.buttonStyle(.bordered)
|
||||||
Button {
|
Button {
|
||||||
Task { await acceptSelectedRequests(client) }
|
Task {
|
||||||
|
await acceptSelectedRequests(client)
|
||||||
|
isInSelectMode = false
|
||||||
|
selectedRequests.removeAll()
|
||||||
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Text("Accept")
|
Text("Accept")
|
||||||
}
|
}
|
||||||
|
@ -100,7 +104,11 @@ public struct NotificationsRequestsListView: View {
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
Task { await rejectSelectedRequests(client) }
|
Task {
|
||||||
|
await rejectSelectedRequests(client)
|
||||||
|
isInSelectMode = false
|
||||||
|
selectedRequests.removeAll()
|
||||||
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Text("Reject")
|
Text("Reject")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue