app(ui): use shared nearby isClickable rule via FQN; no behavior change
This commit is contained in:
@@ -1302,15 +1302,7 @@ private fun NearbyDialog(
|
||||
}
|
||||
NearbyList( // Delad list-renderare från :shared/ui
|
||||
entries = entries, // Den redan byggda delade listan
|
||||
isClickable = { e -> // Bestämmer klickbarhet per rad/lager
|
||||
when (e.layer) {
|
||||
FoundStore.LAYER_WIKI -> e.id != null
|
||||
FoundStore.LAYER_DM -> dm.any { it.id == e.id }
|
||||
FoundStore.LAYER_FORNSOK -> forn.any { it.id == e.id }
|
||||
FoundStore.LAYER_KLOTTER -> e.id != null
|
||||
else -> false
|
||||
}
|
||||
},
|
||||
isClickable = { e -> app.klottr.nearby.isClickable(e, dm, forn) }, // Anropa delade regeln med FQN (slipper import/alias)
|
||||
onEntryClick = { e -> // Mappa klick till dina befintliga callbacks
|
||||
when (e.layer) {
|
||||
FoundStore.LAYER_WIKI -> {
|
||||
|
||||
Reference in New Issue
Block a user