@ -23,14 +23,16 @@ import com.tailscale.ipn.R
import com.tailscale.ipn.mdm.MDMSettings
import com.tailscale.ipn.mdm.MDMSettings
import com.tailscale.ipn.ui.viewModel.IpnViewModel
import com.tailscale.ipn.ui.viewModel.IpnViewModel
@Suppress ( " UNUSED_PARAMETER " )
@Composable
@Composable
fun ManagedByView ( backToSettings : BackNavigation , model : IpnViewModel = viewModel ( ) ) {
fun ManagedByView ( backToSettings : BackNavigation , model : IpnViewModel = viewModel ( ) ) {
Scaffold ( topBar = { Header ( R . string . managed _by , onBack = backToSettings ) } ) { innerPadding ->
Scaffold ( topBar = { Header ( R . string . managed _by , onBack = backToSettings ) } ) { _ ->
Column (
Column (
verticalArrangement =
verticalArrangement =
Arrangement . spacedBy ( space = 20. dp , alignment = Alignment . CenterVertically ) ,
Arrangement . spacedBy ( space = 20. dp , alignment = Alignment . CenterVertically ) ,
horizontalAlignment = Alignment . Start ,
horizontalAlignment = Alignment . Start ,
modifier = Modifier . fillMaxWidth ( ) . safeContentPadding ( ) . verticalScroll ( rememberScrollState ( ) ) ) {
modifier =
Modifier . fillMaxWidth ( ) . safeContentPadding ( ) . verticalScroll ( rememberScrollState ( ) ) ) {
val managedByOrganization =
val managedByOrganization =
MDMSettings . managedByOrganizationName . flow . collectAsState ( ) . value . value
MDMSettings . managedByOrganizationName . flow . collectAsState ( ) . value . value
val managedByCaption = MDMSettings . managedByCaption . flow . collectAsState ( ) . value . value
val managedByCaption = MDMSettings . managedByCaption . flow . collectAsState ( ) . value . value