mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 10:11:00 +00:00
Fix poll for current account
This commit is contained in:
parent
bfc1f61e4b
commit
0501ce9828
1 changed files with 7 additions and 2 deletions
|
@ -76,8 +76,13 @@ public struct StatusPollView: View {
|
|||
VStack(alignment: .leading) {
|
||||
ForEach(Array(viewModel.poll.options.enumerated()), id: \.element.id) { index, option in
|
||||
HStack {
|
||||
if status.account.id == currentAccount.account?.id {
|
||||
makeBarView(for: option, buttonImage: EmptyView())
|
||||
.disabled(true)
|
||||
} else {
|
||||
makeBarView(for: option, buttonImage: buttonImage(option: option))
|
||||
.disabled(isInteractive == false)
|
||||
}
|
||||
if viewModel.showResults || status.account.id == currentAccount.account?.id {
|
||||
Spacer()
|
||||
// Make sure they're all the same width using a ZStack with 100% hiding behind the
|
||||
|
|
Loading…
Reference in a new issue