Also hide session selection with OIDC in the device manager. (#7675)

This commit is contained in:
Doug
2023-09-13 15:07:49 +01:00
committed by GitHub
parent dde602beac
commit 8f0580ca7e
@@ -82,12 +82,14 @@ struct UserOtherSessionsToolbar: ToolbarContent {
private func optionsMenu() -> some View {
Button { } label: {
Menu {
Button {
isEditModeEnabled = true
} label: {
Label(VectorL10n.userOtherSessionMenuSelectSessions, systemImage: "checkmark.circle")
if showDeviceLogout { // As you can only sign out the selected sessions, we don't allow selection when you're unable to sign out devices.
Button {
isEditModeEnabled = true
} label: {
Label(VectorL10n.userOtherSessionMenuSelectSessions, systemImage: "checkmark.circle")
}
.disabled(sessionCount == 0)
}
.disabled(sessionCount == 0)
Button {
isShowLocationEnabled.toggle()