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
55762458
Commit
55762458
authored
Apr 13, 2021
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add empty state and remove old HAML views
Add changelog
parent
42857501
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
33 deletions
+35
-33
app/assets/javascripts/jira_connect/components/subscriptions_list.vue
...avascripts/jira_connect/components/subscriptions_list.vue
+30
-14
app/views/jira_connect/subscriptions/index.html.haml
app/views/jira_connect/subscriptions/index.html.haml
+0
-19
changelogs/unreleased/321441-gitlab-connect-application-namespace-list-polish.yml
...1441-gitlab-connect-application-namespace-list-polish.yml
+5
-0
No files found.
app/assets/javascripts/jira_connect/components/subscriptions_list.vue
View file @
55762458
<
script
>
import
{
GlButton
,
GlTable
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlEmptyState
,
GlTable
}
from
'
@gitlab/ui
'
;
import
{
isEmpty
}
from
'
lodash
'
;
import
{
removeSubscription
}
from
'
~/jira_connect/api
'
;
import
{
reloadPage
}
from
'
~/jira_connect/utils
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
...
...
@@ -9,6 +10,7 @@ import GroupItemName from './group_item_name.vue';
export
default
{
components
:
{
GlButton
,
GlEmptyState
,
GlTable
,
GroupItemName
,
TimeagoTooltip
,
...
...
@@ -33,7 +35,14 @@ export default {
label
:
''
,
},
],
i18n
:
{
emptyTitle
:
s__
(
'
Integrations|No linked namespaces
'
),
emptyDescription
:
s__
(
'
Integrations|Namespaces are the GitLab groups and subgroups you link to this Jira instance.
'
,
),
},
methods
:
{
isEmpty
,
onClick
(
item
)
{
removeSubscription
(
item
.
unlink_path
)
.
then
(()
=>
{
...
...
@@ -47,7 +56,13 @@ export default {
</
script
>
<
template
>
<gl-table
:items=
"subscriptions"
:fields=
"$options.fields"
>
<div>
<gl-empty-state
v-if=
"isEmpty(subscriptions)"
:title=
"$options.i18n.emptyTitle"
:description=
"$options.i18n.emptyDescription"
/>
<gl-table
v-else
:items=
"subscriptions"
:fields=
"$options.fields"
>
<template
#cell(name)=
"
{ item }">
<group-item-name
:group=
"item.group"
/>
</
template
>
...
...
@@ -60,4 +75,5 @@ export default {
}}
</gl-button>
</
template
>
</gl-table>
</div>
</template>
app/views/jira_connect/subscriptions/index.html.haml
View file @
55762458
...
...
@@ -22,25 +22,6 @@
-
else
.js-jira-connect-app
{
data:
jira_connect_app_data
(
@subscriptions
)
}
.jira-connect-app-body
-
if
@subscriptions
.
present?
%table
.subscriptions.gl-w-full
%thead
%tr
%th
=
_
(
'Namespace'
)
%th
=
_
(
'Added'
)
%th
%tbody
-
@subscriptions
.
each
do
|
subscription
|
%tr
%td
=
subscription
.
namespace
.
full_path
%td
=
subscription
.
created_at
%td
=
link_to
_
(
'Remove'
),
jira_connect_subscription_path
(
subscription
),
class:
'js-jira-connect-remove-subscription'
-
else
.gl-text-center
%h4
=
s_
(
'Integrations|No linked namespaces'
)
%p
=
s_
(
'Integrations|Namespaces are the GitLab groups and subgroups you link to this Jira instance.'
)
%p
.jira-connect-app-body.gl-mt-7.gl-font-base.gl-text-center
%strong
=
s_
(
'Integrations|Browser limitations'
)
-
firefox_link_url
=
'https://www.mozilla.org/en-US/firefox/'
...
...
changelogs/unreleased/321441-gitlab-connect-application-namespace-list-polish.yml
0 → 100644
View file @
55762458
---
title
:
Update Jira subscriptions list to use Vue
merge_request
:
57561
author
:
type
:
changed
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