MESSENGER-4516 device manager anpassungen

This commit is contained in:
Arnfried Griesert
2023-04-28 06:28:47 +00:00
committed by Frank Rotermund
parent 280d19922f
commit d9f9798643
18 changed files with 54 additions and 29 deletions
@@ -45,7 +45,7 @@ struct SecurityRecommendationCard: View {
Text(buttonTitle)
.font(theme.fonts.body)
.foregroundColor(theme.colors.accent)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
}
.frame(maxWidth: .infinity, alignment: .leading)
}
@@ -30,9 +30,9 @@ struct UserSessionsListViewAllView: View {
Button(action: { onBackgroundTap?() }) {
VStack(spacing: 0) {
HStack {
Text("View all (\(count))")
Text(BWIL10n.userSessionButtonViewAll(count))
.font(theme.fonts.body)
.foregroundColor(theme.colors.accent)
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
.frame(maxWidth: .infinity, alignment: .leading)
Image(Asset.Images.disclosureIcon.name)
.foregroundColor(theme.colors.tertiaryContent)
@@ -141,14 +141,15 @@ struct UserSessionsOverview: View {
private var otherSessionsMenu: some View {
Menu {
Button {
withAnimation {
viewModel.send(viewAction: .showLocationInfo)
if BWIBuildSettings.shared.deviceManagerShowIPAddress {
Button {
withAnimation {
viewModel.send(viewAction: .showLocationInfo)
}
} label: {
Label(showLocationInfo: viewModel.viewState.showLocationInfo)
}
} label: {
Label(showLocationInfo: viewModel.viewState.showLocationInfo)
}
DestructiveButton {
viewModel.send(viewAction: .logoutOtherSessions)
} label: {