Remove the "Open Comment" option from comments

This commit is contained in:
John Wesley 2024-01-18 15:00:49 -05:00
parent c0ef0e7353
commit ffdb72fc5e
3 changed files with 0 additions and 25 deletions

View File

@ -73,13 +73,6 @@ class _EntryCommentState extends State<EntryComment> {
children: widget.comment.children,
));
}),
openContentLabel: 'Open comment',
onOpenContent: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) =>
EntryCommentScreen(widget.comment.commentId),
),
),
onReply: whenLoggedIn(context, (body) async {
var newSubComment = await api_comments.postComment(
context.read<SettingsController>().httpClient,

View File

@ -73,13 +73,6 @@ class _EntryCommentState extends State<PostComment> {
children: widget.comment.children,
));
}),
openContentLabel: 'Open comment',
onOpenContent: () => Navigator.of(context).push(
MaterialPageRoute(
builder: (context) =>
PostCommentScreen(widget.comment.commentId),
),
),
onReply: whenLoggedIn(context, (body) async {
var newSubComment = await api_comments.postComment(
context.read<SettingsController>().httpClient,

View File

@ -46,8 +46,6 @@ class ContentItem extends StatefulWidget {
final int? numComments;
final Future<void> Function(String)? onReply;
final String? openContentLabel;
final Future<void> Function()? onOpenContent;
final Future<void> Function(String)? onEdit;
final Future<void> Function()? onDelete;
@ -81,8 +79,6 @@ class ContentItem extends StatefulWidget {
this.isDownVoted = false,
this.onDownVote,
this.numComments,
this.openContentLabel,
this.onOpenContent,
this.onReply,
this.onEdit,
this.onDelete,
@ -317,13 +313,6 @@ class _ContentItemState extends State<ContentItem> {
},
controller: _menuController,
menuChildren: [
if (widget.openContentLabel != null)
MenuItemButton(
onPressed: widget.onOpenContent,
child: Padding(
padding: const EdgeInsets.all(12),
child: Text(widget.openContentLabel!)),
),
MenuItemButton(
onPressed: widget.onEdit != null
? () => setState(() {