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
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
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
2 deletions
+41
-2
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+12
-2
app/assets/javascripts/pages/projects/labels/edit/index.js
app/assets/javascripts/pages/projects/labels/edit/index.js
+5
-0
app/assets/javascripts/pages/projects/labels/index/index.js
app/assets/javascripts/pages/projects/labels/index/index.js
+19
-0
app/assets/javascripts/pages/projects/labels/new/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';
...
@@ -483,11 +483,21 @@ import Activities from './activities';
case
'
groups:labels:new
'
:
case
'
groups:labels:new
'
:
case
'
groups:labels:edit
'
:
case
'
groups:labels:edit
'
:
case
'
projects:labels:new
'
:
case
'
projects:labels:new
'
:
import
(
'
./pages/projects/labels/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
projects:labels:edit
'
:
case
'
projects:labels:edit
'
:
new
Labels
();
import
(
'
./pages/projects/labels/new
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
break
;
case
'
groups:labels:index
'
:
case
'
projects:labels:index
'
:
case
'
projects:labels:index
'
:
import
(
'
./pages/projects/labels/index
'
)
.
then
(
callDefault
)
.
catch
(
fail
);
break
;
case
'
groups:labels:index
'
:
if
(
$
(
'
.prioritized-labels
'
).
length
)
{
if
(
$
(
'
.prioritized-labels
'
).
length
)
{
new
LabelManager
();
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