mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-16 17:55:13 +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) {
|
VStack(alignment: .leading) {
|
||||||
ForEach(Array(viewModel.poll.options.enumerated()), id: \.element.id) { index, option in
|
ForEach(Array(viewModel.poll.options.enumerated()), id: \.element.id) { index, option in
|
||||||
HStack {
|
HStack {
|
||||||
makeBarView(for: option, buttonImage: buttonImage(option: option))
|
if status.account.id == currentAccount.account?.id {
|
||||||
.disabled(isInteractive == false)
|
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 {
|
if viewModel.showResults || status.account.id == currentAccount.account?.id {
|
||||||
Spacer()
|
Spacer()
|
||||||
// Make sure they're all the same width using a ZStack with 100% hiding behind the
|
// Make sure they're all the same width using a ZStack with 100% hiding behind the
|
||||||
|
|
Loading…
Reference in a new issue