ios: disable current user profile button
This commit is contained in:
@@ -113,6 +113,7 @@ struct UserPicker: View {
|
||||
.padding(.trailing)
|
||||
.padding([.leading, .vertical], 12)
|
||||
})
|
||||
.disabled(user.activeUser)
|
||||
.buttonStyle(PressedButtonStyle(defaultColor: fillColor, pressedColor: Color(uiColor: .secondarySystemFill)))
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ struct UserProfilesView: View {
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder private func userView(_ user: User) -> some View {
|
||||
private func userView(_ user: User) -> some View {
|
||||
Button {
|
||||
changeActiveUser(user.userId)
|
||||
} label: {
|
||||
|
||||
Reference in New Issue
Block a user