UserSwitcherView: hide logout option if not logged in

Updates tailscale/corp#18202

Signed-off-by: kari-ts <kari@tailscale.com>
pull/264/head
kari-ts 7 months ago
parent 2818195400
commit c863da8519

@ -81,6 +81,7 @@ fun UserSwitcherView(
SettingRow(viewModel.addProfileSetting) SettingRow(viewModel.addProfileSetting)
Lists.ItemDivider() Lists.ItemDivider()
SettingRow(viewModel.loginSetting) SettingRow(viewModel.loginSetting)
if (currentUser != null){
Lists.ItemDivider() Lists.ItemDivider()
SettingRow(viewModel.logoutSetting) SettingRow(viewModel.logoutSetting)
} }
@ -88,3 +89,4 @@ fun UserSwitcherView(
} }
} }
} }
}

Loading…
Cancel
Save