mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Multiplayer | Fix | Add placeholder to space settings when there is no value in settings
This commit is contained in:
parent
2c6aa40a1e
commit
242694df4d
1 changed files with 9 additions and 3 deletions
|
@ -177,21 +177,27 @@ fun SpaceSettingsScreen(
|
|||
item {
|
||||
SettingsItem(
|
||||
title = stringResource(id = R.string.space_id),
|
||||
value = state.data.spaceId,
|
||||
value = state.data.spaceId.orEmpty().ifEmpty {
|
||||
stringResource(id = R.string.unknown)
|
||||
},
|
||||
onClick = { onSpaceIdClicked(it) }
|
||||
)
|
||||
}
|
||||
item {
|
||||
SettingsItem(
|
||||
title = stringResource(id = R.string.network_id),
|
||||
value = state.data.network,
|
||||
value = state.data.network.orEmpty().ifEmpty {
|
||||
stringResource(id = R.string.unknown)
|
||||
},
|
||||
onClick = { onNetworkIdClicked(it) }
|
||||
)
|
||||
}
|
||||
item {
|
||||
SettingsItem(
|
||||
title = stringResource(id = R.string.created_by),
|
||||
value = state.data.createdBy,
|
||||
value = state.data.createdBy.orEmpty().ifEmpty {
|
||||
stringResource(id = R.string.unknown)
|
||||
},
|
||||
onClick = { onCreatedByClicked(it) }
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue