mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Link current session to session overview
This commit is contained in:
@@ -112,14 +112,9 @@ struct UserSessionCardView: View {
|
||||
}
|
||||
|
||||
if viewData.isCurrentSessionDisplayMode {
|
||||
Button {
|
||||
onViewDetailsAction?(viewData.sessionId)
|
||||
} label: {
|
||||
Text(VectorL10n.userSessionViewDetails)
|
||||
.font(theme.fonts.body)
|
||||
.foregroundColor(theme.colors.accent)
|
||||
}
|
||||
.padding(.top, 4)
|
||||
Text(VectorL10n.userSessionViewDetails)
|
||||
.font(theme.fonts.body)
|
||||
.foregroundColor(theme.colors.accent)
|
||||
}
|
||||
}
|
||||
.padding(24)
|
||||
@@ -127,6 +122,11 @@ struct UserSessionCardView: View {
|
||||
.background(theme.colors.background)
|
||||
.clipShape(backgroundShape)
|
||||
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 1.0, shape: backgroundShape)
|
||||
.if(viewData.isCurrentSessionDisplayMode) { view in
|
||||
view.onTapGesture {
|
||||
onViewDetailsAction?(viewData.sessionId)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user