Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4fba6a57
Commit
4fba6a57
authored
Apr 28, 2021
by
Tom Quirk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify jira issues root logic
parent
6a368c33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
43 deletions
+46
-43
app/assets/javascripts/issuable_list/components/issuable_list_root.vue
...vascripts/issuable_list/components/issuable_list_root.vue
+40
-37
ee/app/assets/javascripts/integrations/jira/issues_list/components/jira_issues_list_root.vue
...ons/jira/issues_list/components/jira_issues_list_root.vue
+5
-5
ee/spec/frontend/integrations/jira/issues_list/components/jira_issues_list_root_spec.js
...jira/issues_list/components/jira_issues_list_root_spec.js
+1
-1
No files found.
app/assets/javascripts/issuable_list/components/issuable_list_root.vue
View file @
4fba6a57
...
@@ -274,44 +274,47 @@ export default {
...
@@ -274,44 +274,47 @@ export default {
<gl-skeleton-loading
/>
<gl-skeleton-loading
/>
</li>
</li>
</ul>
</ul>
<component
<
template
v-else
>
:is=
"issuablesWrapper"
<component
v-if=
"!issuablesLoading && issuables.length"
:is=
"issuablesWrapper"
class=
"content-list issuable-list issues-list"
v-if=
"issuables.length > 0"
:class=
"{ 'manual-ordering': isManualOrdering }"
class=
"content-list issuable-list issues-list"
v-bind=
"$options.vueDraggableAttributes"
:class=
"
{ 'manual-ordering': isManualOrdering }"
@
update=
"handleVueDraggableUpdate"
v-bind="$options.vueDraggableAttributes"
>
@update="handleVueDraggableUpdate"
<issuable-item
v-for=
"issuable in issuables"
:key=
"issuableId(issuable)"
:class=
"{ 'gl-cursor-grab': isManualOrdering }"
:issuable-symbol=
"issuableSymbol"
:issuable=
"issuable"
:enable-label-permalinks=
"enableLabelPermalinks"
:label-filter-param=
"labelFilterParam"
:show-checkbox=
"showBulkEditSidebar"
:checked=
"issuableChecked(issuable)"
@
checked-input=
"handleIssuableCheckedInput(issuable, $event)"
>
>
<
template
#reference
>
<issuable-item
<slot
name=
"reference"
:issuable=
"issuable"
></slot>
v-for=
"issuable in issuables"
</
template
>
:key=
"issuableId(issuable)"
<
template
#author
>
:class=
"
{ 'gl-cursor-grab': isManualOrdering }"
<slot
name=
"author"
:author=
"issuable.author"
></slot>
:issuable-symbol="issuableSymbol"
</
template
>
:issuable="issuable"
<
template
#timeframe
>
:enable-label-permalinks="enableLabelPermalinks"
<slot
name=
"timeframe"
:issuable=
"issuable"
></slot>
:label-filter-param="labelFilterParam"
</
template
>
:show-checkbox="showBulkEditSidebar"
<
template
#status
>
:checked="issuableChecked(issuable)"
<slot
name=
"status"
:issuable=
"issuable"
></slot>
@checked-input="handleIssuableCheckedInput(issuable, $event)"
</
template
>
>
<
template
#statistics
>
<template
#reference
>
<slot
name=
"statistics"
:issuable=
"issuable"
></slot>
<slot
name=
"reference"
:issuable=
"issuable"
></slot>
</
template
>
</
template
>
</issuable-item>
<
template
#author
>
</component>
<slot
name=
"author"
:author=
"issuable.author"
></slot>
<slot
v-if=
"!issuablesLoading && !issuables.length"
name=
"empty-state"
></slot>
</
template
>
<
template
#timeframe
>
<slot
name=
"timeframe"
:issuable=
"issuable"
></slot>
</
template
>
<
template
#status
>
<slot
name=
"status"
:issuable=
"issuable"
></slot>
</
template
>
<
template
#statistics
>
<slot
name=
"statistics"
:issuable=
"issuable"
></slot>
</
template
>
</issuable-item>
</component>
<slot
v-else
name=
"empty-state"
></slot>
</template>
<gl-pagination
<gl-pagination
v-if=
"showPaginationControls"
v-if=
"showPaginationControls"
:per-page=
"defaultPageSize"
:per-page=
"defaultPageSize"
...
...
ee/app/assets/javascripts/integrations/jira/issues_list/components/jira_issues_list_root.vue
View file @
4fba6a57
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
return
{
return
{
jiraLogo
,
jiraLogo
,
issues
:
[],
issues
:
[],
issuesListLoading
:
fals
e
,
issuesListLoading
:
tru
e
,
issuesListLoadFailed
:
false
,
issuesListLoadFailed
:
false
,
totalIssues
:
0
,
totalIssues
:
0
,
currentState
:
this
.
initialState
,
currentState
:
this
.
initialState
,
...
@@ -206,19 +206,19 @@ export default {
...
@@ -206,19 +206,19 @@ export default {
</
template
>
</
template
>
<
template
#reference=
"{ issuable }"
>
<
template
#reference=
"{ issuable }"
>
<span
v-safe-html=
"jiraLogo"
class=
"svg-container jira-logo-container"
></span>
<span
v-safe-html=
"jiraLogo"
class=
"svg-container jira-logo-container"
></span>
<span>
{{
issuable
.
references
.
relative
}}
</span>
<span
v-if=
"issuable"
>
{{
issuable
.
references
.
relative
}}
</span>
</
template
>
</
template
>
<
template
#author=
"{ author }"
>
<
template
#author=
"{ author }"
>
<gl-sprintf
message=
"%
{authorName} in Jira">
<gl-sprintf
message=
"%
{authorName} in Jira">
<template
#authorName
>
<template
#authorName
>
<gl-link
class=
"author-link js-user-link"
target=
"_blank"
:href=
"author.webUrl"
<gl-link
class=
"author-link js-user-link"
target=
"_blank"
:href=
"author.webUrl"
>
>
{{
author
.
name
}}
{{
author
.
name
}}
</gl-link>
</gl-link>
</
template
>
</
template
>
</gl-sprintf>
</gl-sprintf>
</template>
</template>
<
template
#status=
"{ issuable }"
>
<
template
#status=
"{ issuable }"
>
{{
issuable
.
status
}}
<template
v-if=
"issuable"
>
{{
issuable
.
status
}}
</
template
>
</template>
</template>
<
template
#empty-state
>
<
template
#empty-state
>
<jira-issues-list-empty-state
<jira-issues-list-empty-state
...
...
ee/spec/frontend/integrations/jira/issues_list/components/jira_issues_list_root_spec.js
View file @
4fba6a57
...
@@ -120,7 +120,7 @@ describe('JiraIssuesListRoot', () => {
...
@@ -120,7 +120,7 @@ describe('JiraIssuesListRoot', () => {
describe
(
'
when request fails
'
,
()
=>
{
describe
(
'
when request fails
'
,
()
=>
{
it
.
each
`
it
.
each
`
APIErrorMessage | expectedRenderedErrorMessage
APIErrorMessage | expectedRenderedErrorMessage
${
'
API error
'
}
|
${
'
A
PI error
'
}
${
'
API error
'
}
|
${
'
A
n error occurred while loading issues
'
}
${
undefined
}
|
${
'
An error occurred while loading issues
'
}
${
undefined
}
|
${
'
An error occurred while loading issues
'
}
`
(
`
(
'
calls `createFlash` with "$expectedRenderedErrorMessage" when API responds with "$APIErrorMessage"
'
,
'
calls `createFlash` with "$expectedRenderedErrorMessage" when API responds with "$APIErrorMessage"
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment