Skip to content

Commit

Permalink
"Sign Out" button in account switcher context menu (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf authored Dec 30, 2024
1 parent 04ac212 commit b873e85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mlem/App/Views/Shared/ListRow/AccountListRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ struct AccountListRow: View {
}
}
.disabled(appState.firstSession.actorId == account.actorId)
Divider()
Button(signOutLabel, systemImage: Icons.signOut, role: .destructive) {
showingSignOutConfirmation = true
}
} else {
Button("Keep", systemImage: Icons.pin) {
AccountsTracker.main.addAccount(account: account)
Expand Down

0 comments on commit b873e85

Please sign in to comment.