Skip to content

Commit a1028ca

Browse files
committed
Hide 'Add Journal Item' button for players
1 parent 0896076 commit a1028ca

File tree

1 file changed

+4
-0
lines changed
  • common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/compendium/journal

1 file changed

+4
-0
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/compendium/journal/JournalScreen.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ class JournalScreen(
118118
}
119119
},
120120
floatingActionButton = {
121+
if (isGameMaster != true) {
122+
return@SearchableList
123+
}
124+
121125
FloatingActionButton(onClick = { newEntryDialogOpened = true }) {
122126
Icon(
123127
Icons.Rounded.Add,

0 commit comments

Comments
 (0)