Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
8f5da962
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8f5da962
编写于
6月 01, 2017
作者:
P
Phil Hughes
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed boards specs
added key to assignee avatar loop
上级
3a4b3a19
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
8 deletion
+9
-8
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+1
-1
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+1
-0
app/assets/javascripts/boards/components/modal/footer.js
app/assets/javascripts/boards/components/modal/footer.js
+1
-1
spec/features/boards/add_issues_modal_spec.rb
spec/features/boards/add_issues_modal_spec.rb
+2
-2
spec/features/boards/sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+4
-4
未找到文件。
app/assets/javascripts/boards/boards_bundle.js
浏览文件 @
8f5da962
...
...
@@ -128,7 +128,7 @@ $(() => {
},
computed
:
{
disabled
()
{
return
!
this
.
store
.
lists
.
filter
(
list
=>
list
.
type
!==
'
blank
'
&&
list
.
type
!==
'
done
'
).
length
;
return
!
this
.
store
.
lists
.
filter
(
list
=>
!
list
.
preset
).
length
;
},
tooltipTitle
()
{
if
(
this
.
disabled
)
{
...
...
app/assets/javascripts/boards/components/issue_card_inner.js
浏览文件 @
8f5da962
...
...
@@ -152,6 +152,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({
<div class="card-assignee">
<user-avatar-link
v-for="(assignee, index) in issue.assignees"
:key="assignee.id"
v-if="shouldRenderAssignee(index)"
class="js-no-trigger"
:link-href="assigneeUrl(assignee)"
...
...
app/assets/javascripts/boards/components/modal/footer.js
浏览文件 @
8f5da962
...
...
@@ -26,7 +26,7 @@ gl.issueBoards.ModalFooter = Vue.extend({
},
methods
:
{
addIssues
()
{
const
list
=
this
.
modal
.
selectedList
||
this
.
state
.
lists
[
0
];
const
list
=
this
.
modal
.
selectedList
||
this
.
state
.
lists
[
1
];
const
selectedIssues
=
ModalStore
.
getSelectedIssues
();
const
issueIds
=
selectedIssues
.
map
(
issue
=>
issue
.
globalId
);
...
...
spec/features/boards/add_issues_modal_spec.rb
浏览文件 @
8f5da962
...
...
@@ -231,7 +231,7 @@ describe 'Issue Boards add issue modal', :feature, :js do
click_button
'Add 1 issue'
end
page
.
within
(
fi
rst
(
'.board
'
))
do
page
.
within
(
fi
nd
(
'.board:nth-child(2)
'
))
do
expect
(
page
).
to
have_selector
(
'.card'
)
end
end
...
...
@@ -247,7 +247,7 @@ describe 'Issue Boards add issue modal', :feature, :js do
click_button
'Add 1 issue'
end
page
.
within
(
find
(
'.board:nth-child(
2
)'
))
do
page
.
within
(
find
(
'.board:nth-child(
3
)'
))
do
expect
(
page
).
to
have_selector
(
'.card'
)
end
end
...
...
spec/features/boards/sidebar_spec.rb
浏览文件 @
8f5da962
...
...
@@ -13,7 +13,7 @@ describe 'Issue Boards', feature: true, js: true do
let!
(
:issue2
)
{
create
(
:labeled_issue
,
project:
project
,
labels:
[
development
,
stretch
],
relative_position:
1
)
}
let
(
:board
)
{
create
(
:board
,
project:
project
)
}
let!
(
:list
)
{
create
(
:list
,
board:
board
,
label:
development
,
position:
0
)
}
let
(
:card
)
{
fi
rst
(
'.board
'
).
first
(
'.card'
)
}
let
(
:card
)
{
fi
nd
(
'.board:nth-child(2)
'
).
first
(
'.card'
)
}
before
do
Timecop
.
freeze
...
...
@@ -74,7 +74,7 @@ describe 'Issue Boards', feature: true, js: true do
wait_for_requests
page
.
within
(
fi
rst
(
'.board
'
))
do
page
.
within
(
fi
nd
(
'.board:nth-child(2)
'
))
do
expect
(
page
).
to
have_selector
(
'.card'
,
count:
1
)
end
end
...
...
@@ -101,7 +101,7 @@ describe 'Issue Boards', feature: true, js: true do
end
it
'removes the assignee'
do
card_two
=
fi
rst
(
'.board
'
).
find
(
'.card:nth-child(2)'
)
card_two
=
fi
nd
(
'.board:nth-child(2)
'
).
find
(
'.card:nth-child(2)'
)
click_card
(
card_two
)
page
.
within
(
'.assignee'
)
do
...
...
@@ -154,7 +154,7 @@ describe 'Issue Boards', feature: true, js: true do
expect
(
page
).
to
have_content
(
user
.
name
)
end
page
.
within
(
fi
rst
(
'.board
'
))
do
page
.
within
(
fi
nd
(
'.board:nth-child(2)
'
))
do
find
(
'.card:nth-child(2)'
).
trigger
(
'click'
)
end
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录