mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
Show bottom sheet in other sessions screen
This commit is contained in:
+2
-28
@@ -61,6 +61,8 @@ class UserOtherSessionsViewModel: UserOtherSessionsViewModelType, UserOtherSessi
|
||||
case .toggleAllSelection:
|
||||
toggleAllSelection()
|
||||
updateViewState()
|
||||
case .viewSessionInfo:
|
||||
completion?(.showSessionStateInfo(filter: state.bindings.filter))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,32 +170,4 @@ private extension UserOtherSessionsFilter {
|
||||
}
|
||||
}
|
||||
|
||||
extension UserOtherSessionsViewState {
|
||||
var bottomSheetTitle: String {
|
||||
switch bindings.filter {
|
||||
case .unverified:
|
||||
return VectorL10n.userSessionUnverifiedSessionTitle
|
||||
case .verified:
|
||||
return VectorL10n.userSessionVerifiedSessionTitle
|
||||
case .inactive:
|
||||
return VectorL10n.userSessionInactiveSessionTitle
|
||||
case .all:
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
var bottomSheetDescription: String {
|
||||
switch bindings.filter {
|
||||
case .unverified:
|
||||
return VectorL10n.userSessionUnverifiedSessionDescription
|
||||
case .verified:
|
||||
return VectorL10n.userSessionVerifiedSessionDescription
|
||||
case .inactive:
|
||||
return VectorL10n.userSessionInactiveSessionDescription
|
||||
case .all:
|
||||
return ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user