BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d08610c3
Commit
d08610c3
authored
Jan 11, 2018
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor projects:l*
parent
0a51eae5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
2 deletions
+41
-2
dispatcher.js
app/assets/javascripts/dispatcher.js
+12
-2
index.js
app/assets/javascripts/pages/projects/labels/edit/index.js
+5
-0
index.js
app/assets/javascripts/pages/projects/labels/index/index.js
+19
-0
index.js
app/assets/javascripts/pages/projects/labels/new/index.js
+5
-0
No files found.
app/assets/javascripts/dispatcher.js
View file @
d08610c3
...
...
@@ -483,11 +483,21 @@ import Activities from './activities';
case
'groups:labels:new'
:
case
'groups:labels:edit'
:
case
'projects:labels:new'
:
import
(
'./pages/projects/labels/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'projects:labels:edit'
:
new
Labels
();
import
(
'./pages/projects/labels/new'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'groups:labels:index'
:
case
'projects:labels:index'
:
import
(
'./pages/projects/labels/index'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'groups:labels:index'
:
if
(
$
(
'.prioritized-labels'
).
length
)
{
new
LabelManager
();
}
...
...
app/assets/javascripts/pages/projects/labels/edit/index.js
0 → 100644
View file @
d08610c3
import
Labels
from
'~/labels'
;
export
default
function
()
{
new
Labels
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/labels/index/index.js
0 → 100644
View file @
d08610c3
/* eslint-disable no-new */
import
LabelManager
from
'~/label_manager'
;
import
GroupLabelSubscription
from
'~/group_label_subscription'
;
import
ProjectLabelSubscription
from
'~/project_label_subscription'
;
export
default
()
=>
{
if
(
$
(
'.prioritized-labels'
).
length
)
{
new
LabelManager
();
}
$
(
'.label-subscription'
).
each
((
i
,
el
)
=>
{
const
$el
=
$
(
el
);
if
(
$el
.
find
(
'.dropdown-group-label'
).
length
)
{
new
GroupLabelSubscription
(
$el
);
}
else
{
new
ProjectLabelSubscription
(
$el
);
}
});
};
app/assets/javascripts/pages/projects/labels/new/index.js
0 → 100644
View file @
d08610c3
import
Labels
from
'~/labels'
;
export
default
function
()
{
new
Labels
();
// eslint-disable-line no-new
}
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