Add missing comments to localized strings, reorder buttons, mark destructive buttons
This commit is contained in:
@@ -148,10 +148,10 @@ struct SideMenuView: View {
|
||||
isSidebarVisible.toggle()
|
||||
}
|
||||
.alert("Logout", isPresented: $confirm_logout) {
|
||||
Button(NSLocalizedString("Cancel", comment: "Cancel out of logging out the user.")) {
|
||||
Button(NSLocalizedString("Cancel", comment: "Cancel out of logging out the user."), role: .cancel) {
|
||||
confirm_logout = false
|
||||
}
|
||||
Button(NSLocalizedString("Logout", comment: "Button for logging out the user.")) {
|
||||
Button(NSLocalizedString("Logout", comment: "Button for logging out the user."), role: .destructive) {
|
||||
notify(.logout, ())
|
||||
}
|
||||
} message: {
|
||||
|
||||
Reference in New Issue
Block a user