Skip to content
代码片段 群组 项目
提交 3b4e535d 编辑于 作者: Neil Wang's avatar Neil Wang
浏览文件

refactor: #845 remove destinationHost in MergeRequestPage

上级 a2f48097
No related branches found
No related tags found
无相关合并请求
......@@ -8,12 +8,12 @@ import 'package:jihu_gitlab_app/modules/issues/details/issue_details_page.dart';
class IssueDescriptionView extends MarkdownView {
final int projectId;
IssueDescriptionView({required this.projectId, required super.data, required super.context, super.padding = EdgeInsets.zero, super.key, String? destinationHost})
IssueDescriptionView({required this.projectId, required super.data, required super.context, super.padding = EdgeInsets.zero, super.key, String? specificHost})
: super(
builders: {'code': CodeElementBuilder(), '#': NumberSignBuilder(projectId: projectId, context: context)},
inlineSyntaxes: [NumberSignSyntax()],
physics: const NeverScrollableScrollPhysics(),
specificHost: destinationHost,
specificHost: specificHost,
);
}
......
......@@ -58,7 +58,7 @@ Widget _buildDescription(BuildContext context, IssueDetailsModel model, String?
padding: const EdgeInsets.only(left: 0, top: 12, right: 16, bottom: 16),
data: issueInfo.description,
context: context,
destinationHost: destinationHost,
specificHost: destinationHost,
),
IssueVotesView(issueIid: model.issueIid, projectIid: model.projectId, fullPath: model.fullPath, destinationHost: model.destinationHost),
_buildDivider()
......
......@@ -168,7 +168,7 @@ class _MergeRequestPageState extends State<MergeRequestPage> with TickerProvider
projectId: _model.mr!.projectId,
data: _model.mr!.description,
context: context,
destinationHost: ProjectProvider().specifiedHost,
specificHost: ProjectProvider().specifiedHost,
),
),
_buildDivider(),
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册