|
|
@ -25,7 +25,7 @@ import com.tailscale.ipn.ui.viewModel.UserSwitcherViewModel
|
|
|
|
|
|
|
|
|
|
|
|
@OptIn(ExperimentalMaterial3Api::class)
|
|
|
|
@OptIn(ExperimentalMaterial3Api::class)
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
fun UserSwitcherView(
|
|
|
|
fun UserSwitcherView(
|
|
|
|
nav: BackNavigation,
|
|
|
|
nav: BackNavigation,
|
|
|
|
onNavigateHome: () -> Unit,
|
|
|
|
onNavigateHome: () -> Unit,
|
|
|
|
viewModel: UserSwitcherViewModel = viewModel()
|
|
|
|
viewModel: UserSwitcherViewModel = viewModel()
|
|
|
@ -81,8 +81,10 @@ fun UserSwitcherView(
|
|
|
|
SettingRow(viewModel.addProfileSetting)
|
|
|
|
SettingRow(viewModel.addProfileSetting)
|
|
|
|
Lists.ItemDivider()
|
|
|
|
Lists.ItemDivider()
|
|
|
|
SettingRow(viewModel.loginSetting)
|
|
|
|
SettingRow(viewModel.loginSetting)
|
|
|
|
Lists.ItemDivider()
|
|
|
|
if (currentUser != null){
|
|
|
|
SettingRow(viewModel.logoutSetting)
|
|
|
|
Lists.ItemDivider()
|
|
|
|
|
|
|
|
SettingRow(viewModel.logoutSetting)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|