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
bfef5f08
Commit
bfef5f08
authored
Mar 04, 2021
by
Enrique Alcantara
Committed by
David O'Regan
Mar 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove milestone deprecation popover
parent
0e59f6ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
31 deletions
+0
-31
app/assets/javascripts/milestone.js
app/assets/javascripts/milestone.js
+0
-27
app/assets/javascripts/pages/dashboard/milestones/show/index.js
...sets/javascripts/pages/dashboard/milestones/show/index.js
+0
-2
app/assets/javascripts/pages/groups/milestones/show/index.js
app/assets/javascripts/pages/groups/milestones/show/index.js
+0
-2
No files found.
app/assets/javascripts/milestone.js
View file @
bfef5f08
...
@@ -2,7 +2,6 @@ import $ from 'jquery';
...
@@ -2,7 +2,6 @@ import $ from 'jquery';
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
{
deprecatedCreateFlash
as
flash
}
from
'
./flash
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
axios
from
'
./lib/utils/axios_utils
'
;
import
{
__
}
from
'
./locale
'
;
import
{
__
}
from
'
./locale
'
;
import
{
mouseenter
,
debouncedMouseleave
,
togglePopover
}
from
'
./shared/popover
'
;
export
default
class
Milestone
{
export
default
class
Milestone
{
constructor
()
{
constructor
()
{
...
@@ -43,30 +42,4 @@ export default class Milestone {
...
@@ -43,30 +42,4 @@ export default class Milestone {
.
catch
(()
=>
flash
(
__
(
'
Error loading milestone tab
'
)));
.
catch
(()
=>
flash
(
__
(
'
Error loading milestone tab
'
)));
}
}
}
}
static
initDeprecationMessage
()
{
const
deprecationMesssageContainer
=
document
.
querySelector
(
'
.js-milestone-deprecation-message
'
,
);
if
(
!
deprecationMesssageContainer
)
return
;
const
deprecationMessage
=
deprecationMesssageContainer
.
querySelector
(
'
.js-milestone-deprecation-message-template
'
,
).
innerHTML
;
const
$popover
=
$
(
'
.js-popover-link
'
,
deprecationMesssageContainer
);
const
hideOnScroll
=
togglePopover
.
bind
(
$popover
,
false
);
$popover
.
popover
({
content
:
deprecationMessage
,
html
:
true
,
placement
:
'
bottom
'
,
})
.
on
(
'
mouseenter
'
,
mouseenter
)
.
on
(
'
mouseleave
'
,
debouncedMouseleave
())
.
on
(
'
show.bs.popover
'
,
()
=>
{
window
.
addEventListener
(
'
scroll
'
,
hideOnScroll
,
{
once
:
true
});
});
}
}
}
app/assets/javascripts/pages/dashboard/milestones/show/index.js
View file @
bfef5f08
...
@@ -6,6 +6,4 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -6,6 +6,4 @@ document.addEventListener('DOMContentLoaded', () => {
new
Milestone
();
// eslint-disable-line no-new
new
Milestone
();
// eslint-disable-line no-new
new
Sidebar
();
// eslint-disable-line no-new
new
Sidebar
();
// eslint-disable-line no-new
new
MountMilestoneSidebar
();
// eslint-disable-line no-new
new
MountMilestoneSidebar
();
// eslint-disable-line no-new
Milestone
.
initDeprecationMessage
();
});
});
app/assets/javascripts/pages/groups/milestones/show/index.js
View file @
bfef5f08
import
Milestone
from
'
~/milestone
'
;
import
initDeleteMilestoneModal
from
'
~/pages/milestones/shared/delete_milestone_modal_init
'
;
import
initDeleteMilestoneModal
from
'
~/pages/milestones/shared/delete_milestone_modal_init
'
;
import
initMilestonesShow
from
'
~/pages/milestones/shared/init_milestones_show
'
;
import
initMilestonesShow
from
'
~/pages/milestones/shared/init_milestones_show
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initMilestonesShow
();
initMilestonesShow
();
initDeleteMilestoneModal
();
initDeleteMilestoneModal
();
Milestone
.
initDeprecationMessage
();
});
});
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