From 8be3e439c2b3a90fcb639b732008486b85314b8d Mon Sep 17 00:00:00 2001 From: 赵智超 <1012112796@qq.com> Date: Tue, 13 Oct 2020 03:55:13 +0800 Subject: Add team support for review request (#12039) Add team support for review request Block #11355 Signed-off-by: a1012112796 <1012112796@qq.com> Signed-off-by: Andrew Thornton Co-authored-by: Lauris BH Co-authored-by: Andrew Thornton --- web_src/js/index.js | 5 +++-- web_src/less/_repository.less | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'web_src') diff --git a/web_src/js/index.js b/web_src/js/index.js index e1fd24f37c..9fafe62d3e 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -663,15 +663,16 @@ function initIssueComments() { const url = $(this).data('update-url'); const issueId = $(this).data('issue-id'); const id = $(this).data('id'); - const isChecked = $(this).data('is-checked'); + const isChecked = $(this).hasClass('checked'); event.preventDefault(); updateIssuesMeta( url, - isChecked === 'true' ? 'attach' : 'detach', + isChecked ? 'detach' : 'attach', issueId, id, ).then(reload); + return false; }); $(document).on('click', (event) => { diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index a6e3be68e7..ca1a87b557 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -101,6 +101,12 @@ line-height: 2em; } + &.assignees .teamavatar { + margin-top: .125rem; + margin-left: 6.75px; + margin-right: 8.75px; + } + .hide { display: none !important; } -- cgit v1.2.3