Skip to content
代码片段 群组 项目
提交 c061fd5a 编辑于 作者: Dheeraj Joshi's avatar Dheeraj Joshi 提交者: Himanshu Kapoor
浏览文件

Update button to use Pajamas::ButtonComponent

上级 c26624f6
No related branches found
No related tags found
无相关合并请求
......@@ -40,9 +40,12 @@ export default class SingleFileDiff {
this.$chevronDownIcon.removeClass('gl-display-none');
}
$('.js-file-title, .click-to-expand', this.file).on('click', (e) => {
$('.js-file-title', this.file).on('click', (e) => {
this.toggleDiff($(e.target));
});
$('.click-to-expand', this.file).on('click', (e) => {
this.toggleDiff($(e.currentTarget));
});
}
toggleDiff($target, cb) {
......
.nothing-here-block.diff-collapsed{ data: { diff_for_path: collapsed_diff_url(viewer.diff_file) } }
= _("This diff is collapsed.")
%button.click-to-expand.gl-button.btn.btn-link= _("Click to expand it.")
= render Pajamas::ButtonComponent.new(variant: :link, button_options: { class: 'click-to-expand' }) do
= _("Click to expand it.")
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册