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
Boxiang Sun
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';
...
@@ -482,13 +482,15 @@ import Activities from './activities';
break
;
break
;
case
'
groups:labels:new
'
:
case
'
groups:labels:new
'
:
case
'
groups:labels:edit
'
:
case
'
groups:labels:edit
'
:
new
Labels
();
break
;
case
'
projects:labels:new
'
:
case
'
projects:labels:new
'
:
import
(
'
./pages/projects/labels/new
'
)
import
(
'
./pages/projects/labels/new
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
case
'
projects:labels:edit
'
:
case
'
projects:labels:edit
'
:
import
(
'
./pages/projects/labels/
new
'
)
import
(
'
./pages/projects/labels/
edit
'
)
.
then
(
callDefault
)
.
then
(
callDefault
)
.
catch
(
fail
);
.
catch
(
fail
);
break
;
break
;
...
...
app/assets/javascripts/pages/projects/labels/edit/index.js
View file @
f7160499
import
Labels
from
'
~/labels
'
;
import
Labels
from
'
~/labels
'
;
export
default
function
()
{
export
default
()
=>
new
Labels
();
new
Labels
();
// eslint-disable-line no-new
}
app/assets/javascripts/pages/projects/labels/index/index.js
View file @
f7160499
/* eslint-disable no-new */
import
LabelManager
from
'
~/label_manager
'
;
import
LabelManager
from
'
~/label_manager
'
;
import
GroupLabelSubscription
from
'
~/group_label_subscription
'
;
import
GroupLabelSubscription
from
'
~/group_label_subscription
'
;
import
ProjectLabelSubscription
from
'
~/project_label_subscription
'
;
import
ProjectLabelSubscription
from
'
~/project_label_subscription
'
;
export
default
()
=>
{
export
default
()
=>
{
if
(
$
(
'
.prioritized-labels
'
).
length
)
{
if
(
$
(
'
.prioritized-labels
'
).
length
)
{
new
LabelManager
();
new
LabelManager
();
// eslint-disable-line no-new
}
}
$
(
'
.label-subscription
'
).
each
((
i
,
el
)
=>
{
$
(
'
.label-subscription
'
).
each
((
i
,
el
)
=>
{
const
$el
=
$
(
el
);
const
$el
=
$
(
el
);
if
(
$el
.
find
(
'
.dropdown-group-label
'
).
length
)
{
if
(
$el
.
find
(
'
.dropdown-group-label
'
).
length
)
{
new
GroupLabelSubscription
(
$el
);
new
GroupLabelSubscription
(
$el
);
// eslint-disable-line no-new
}
else
{
}
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
'
;
import
Labels
from
'
~/labels
'
;
export
default
function
()
{
export
default
()
=>
new
Labels
();
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