Disable Update feed color option in FeedBottomSheet

This commit is contained in:
Shinokuni 2024-08-14 14:59:25 +02:00
parent eca565ca07
commit 7b3920374e
2 changed files with 3 additions and 4 deletions

View File

@ -297,7 +297,6 @@ object FeedTab : Tab {
onUpdate = {
screenModel.openDialog(DialogState.UpdateFeed(dialog.feed, dialog.folder))
},
onUpdateColor = {},
onDelete = { screenModel.openDialog(DialogState.DeleteFeed(dialog.feed)) },
canUpdateFeed = dialog.config.canUpdateFeed,
canDeleteFeed = dialog.config.canDeleteFeed

View File

@ -40,7 +40,7 @@ fun FeedModalBottomSheet(
onDismissRequest: () -> Unit,
onOpen: () -> Unit,
onUpdate: () -> Unit,
onUpdateColor: () -> Unit,
//onUpdateColor: () -> Unit,
onDelete: () -> Unit,
canUpdateFeed: Boolean,
canDeleteFeed: Boolean
@ -110,11 +110,11 @@ fun FeedModalBottomSheet(
)
}
BottomSheetOption(
/*BottomSheetOption(
text = stringResource(R.string.update_color),
icon = ImageVector.vectorResource(R.drawable.ic_color),
onClick = onUpdateColor
)
)*/
if (canDeleteFeed) {
BottomSheetOption(