mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 19:10:41 +02:00
Fix vitorpamplona/amethyst#550 - change broadcast button position
This commit is contained in:
@@ -438,6 +438,10 @@ fun NoteDropDownMenu(note: Note, popupExpanded: MutableState<Boolean>, accountVi
|
|||||||
Text(stringResource(R.string.quick_action_share))
|
Text(stringResource(R.string.quick_action_share))
|
||||||
}
|
}
|
||||||
Divider()
|
Divider()
|
||||||
|
DropdownMenuItem(onClick = { scope.launch(Dispatchers.IO) { accountViewModel.broadcast(note); onDismiss() } }) {
|
||||||
|
Text(stringResource(R.string.broadcast))
|
||||||
|
}
|
||||||
|
Divider()
|
||||||
if (state.isPrivateBookmarkNote) {
|
if (state.isPrivateBookmarkNote) {
|
||||||
DropdownMenuItem(onClick = { scope.launch(Dispatchers.IO) { accountViewModel.removePrivateBookmark(note); onDismiss() } }) {
|
DropdownMenuItem(onClick = { scope.launch(Dispatchers.IO) { accountViewModel.removePrivateBookmark(note); onDismiss() } }) {
|
||||||
Text(stringResource(R.string.remove_from_private_bookmarks))
|
Text(stringResource(R.string.remove_from_private_bookmarks))
|
||||||
@@ -457,10 +461,6 @@ fun NoteDropDownMenu(note: Note, popupExpanded: MutableState<Boolean>, accountVi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Divider()
|
Divider()
|
||||||
DropdownMenuItem(onClick = { scope.launch(Dispatchers.IO) { accountViewModel.broadcast(note); onDismiss() } }) {
|
|
||||||
Text(stringResource(R.string.broadcast))
|
|
||||||
}
|
|
||||||
Divider()
|
|
||||||
if (state.isLoggedUser) {
|
if (state.isLoggedUser) {
|
||||||
DropdownMenuItem(onClick = { scope.launch(Dispatchers.IO) { accountViewModel.delete(note); onDismiss() } }) {
|
DropdownMenuItem(onClick = { scope.launch(Dispatchers.IO) { accountViewModel.delete(note); onDismiss() } }) {
|
||||||
Text(stringResource(R.string.request_deletion))
|
Text(stringResource(R.string.request_deletion))
|
||||||
|
Reference in New Issue
Block a user