Remove Permission Button
Nucleic-Session: E0927223-36BE-4F01-9E69-575442FC3E5A Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -76,7 +76,10 @@ struct ApprovalCardView: View {
|
|||||||
.disabled(!allowEnabled)
|
.disabled(!allowEnabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !store.capabilities.allowAlwaysScopes.isEmpty {
|
// A destructive action (rm, force-push, reset --hard, …) offers no remembered
|
||||||
|
// allow: every one must be a deliberate, one-off approval, never granted in a
|
||||||
|
// way that lets the next one through unseen. Mirrors the Mac.
|
||||||
|
if approval.risk != .destructive, !store.capabilities.allowAlwaysScopes.isEmpty {
|
||||||
Menu("Allow always…") {
|
Menu("Allow always…") {
|
||||||
ForEach(store.capabilities.allowAlwaysScopes, id: \.self) { scope in
|
ForEach(store.capabilities.allowAlwaysScopes, id: \.self) { scope in
|
||||||
Button(alwaysLabel(scope)) {
|
Button(alwaysLabel(scope)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user