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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
f7160499
Commit
f7160499
authored
Jan 11, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code improvements
parent
d08610c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+3
-1
app/assets/javascripts/pages/projects/labels/edit/index.js
app/assets/javascripts/pages/projects/labels/edit/index.js
+1
-3
app/assets/javascripts/pages/projects/labels/index/index.js
app/assets/javascripts/pages/projects/labels/index/index.js
+3
-4
app/assets/javascripts/pages/projects/labels/new/index.js
app/assets/javascripts/pages/projects/labels/new/index.js
+1
-3
No files found.
app/assets/javascripts/dispatcher.js
View file @
f7160499
...
...
@@ -482,13 +482,15 @@ import Activities from './activities';
break
;
case
'
groups:labels:new
'
:
case
'
groups:labels:edit
'
:
new
Labels
();
break
;
case
'
projects:labels:new
'
:
import
(
'
./pages/projects/labels/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:labels:edit
'
:
import
(
'
./pages/projects/labels/
new
'
)
import
(
'
./pages/projects/labels/
edit
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
...
...
app/assets/javascripts/pages/projects/labels/edit/index.js
View file @
f7160499
import
Labels
from
'
~/labels
'
;
export
default
function
()
{
new
Labels
();
// eslint-disable-line no-new
}
export
default
()
=>
new
Labels
();
app/assets/javascripts/pages/projects/labels/index/index.js
View file @
f7160499
/* 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
();
new
LabelManager
();
// eslint-disable-line no-new
}
$
(
'
.label-subscription
'
).
each
((
i
,
el
)
=>
{
const
$el
=
$
(
el
);
if
(
$el
.
find
(
'
.dropdown-group-label
'
).
length
)
{
new
GroupLabelSubscription
(
$el
);
new
GroupLabelSubscription
(
$el
);
// eslint-disable-line no-new
}
else
{
new
ProjectLabelSubscription
(
$el
);
new
ProjectLabelSubscription
(
$el
);
// eslint-disable-line no-new
}
});
};
app/assets/javascripts/pages/projects/labels/new/index.js
View file @
f7160499
import
Labels
from
'
~/labels
'
;
export
default
function
()
{
new
Labels
();
// eslint-disable-line no-new
}
export
default
()
=>
new
Labels
();
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