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
df393a85
Commit
df393a85
authored
Oct 06, 2020
by
jerasmus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace BSTooltip with GlTooltip
Replaced the BSTooltip with GlTooltip
parent
a7fde797
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/label_manager.js
app/assets/javascripts/label_manager.js
+3
-2
No files found.
app/assets/javascripts/label_manager.js
View file @
df393a85
...
...
@@ -6,6 +6,7 @@ import Sortable from 'sortablejs';
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
__
}
from
'
./locale
'
;
import
{
hide
,
dispose
}
from
'
~/tooltips
'
;
export
default
class
LabelManager
{
constructor
({
togglePriorityButton
,
prioritizedLabels
,
otherLabels
}
=
{})
{
...
...
@@ -40,14 +41,14 @@ export default class LabelManager {
const
$label
=
$
(
`#
${
$btn
.
data
(
'
domId
'
)}
`
);
const
action
=
$btn
.
parents
(
'
.js-prioritized-labels
'
).
length
?
'
remove
'
:
'
add
'
;
const
$tooltip
=
$
(
`#
${
$btn
.
find
(
'
.has-tooltip:visible
'
).
attr
(
'
aria-describedby
'
)}
`
);
$tooltip
.
tooltip
(
'
dispose
'
);
dispose
(
$tooltip
);
_this
.
toggleLabelPriority
(
$label
,
action
);
_this
.
toggleEmptyState
(
$label
,
$btn
,
action
);
}
onButtonActionClick
(
e
)
{
e
.
stopPropagation
();
$
(
e
.
currentTarget
).
tooltip
(
'
hide
'
);
hide
(
e
.
currentTarget
);
}
toggleEmptyState
()
{
...
...
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