mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
Composer: Disable in app account switching
This commit is contained in:
parent
a3744525df
commit
881816730c
1 changed files with 8 additions and 5 deletions
|
@ -91,7 +91,6 @@ public struct StatusEditorView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: currentAccount.account?.id, perform: { _ in
|
.onChange(of: currentAccount.account?.id, perform: { _ in
|
||||||
viewModel.client = client
|
|
||||||
viewModel.currentAccount = currentAccount.account
|
viewModel.currentAccount = currentAccount.account
|
||||||
})
|
})
|
||||||
.background(theme.primaryBackgroundColor)
|
.background(theme.primaryBackgroundColor)
|
||||||
|
@ -230,12 +229,16 @@ public struct StatusEditorView: View {
|
||||||
private var accountHeaderView: some View {
|
private var accountHeaderView: some View {
|
||||||
if let account = currentAccount.account, !viewModel.mode.isEditing {
|
if let account = currentAccount.account, !viewModel.mode.isEditing {
|
||||||
HStack {
|
HStack {
|
||||||
AppAccountsSelectorView(routerPath: RouterPath(),
|
if viewModel.mode.isInShareExtension {
|
||||||
accountCreationEnabled: false,
|
AppAccountsSelectorView(routerPath: RouterPath(),
|
||||||
avatarSize: .status)
|
accountCreationEnabled: false,
|
||||||
|
avatarSize: .status)
|
||||||
|
} else {
|
||||||
|
AvatarView(url: account.avatar, size: .status)
|
||||||
|
}
|
||||||
VStack(alignment: .leading, spacing: 4) {
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
privacyMenu
|
privacyMenu
|
||||||
Text("@\(account.acct)@\(client.server)")
|
Text("@\(account.acct)@\(appAccounts.currentClient.server)")
|
||||||
.font(.scaledFootnote)
|
.font(.scaledFootnote)
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue