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
850b8bbd
Commit
850b8bbd
authored
Jul 28, 2021
by
Denys Mishunov
Committed by
Brandon Labuschagne
Jul 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Took the NotesApp out of the global scope
parent
b8b6fb29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
app/assets/javascripts/notes/index.js
app/assets/javascripts/notes/index.js
+6
-3
app/assets/javascripts/pages/projects/issues/show.js
app/assets/javascripts/pages/projects/issues/show.js
+3
-1
ee/app/assets/javascripts/pages/groups/epics/show/index.js
ee/app/assets/javascripts/pages/groups/epics/show/index.js
+2
-1
No files found.
app/assets/javascripts/notes/index.js
View file @
850b8bbd
...
...
@@ -5,9 +5,12 @@ import initSortDiscussions from './sort_discussions';
import
{
store
}
from
'
./stores
'
;
import
initTimelineToggle
from
'
./timeline
'
;
const
el
=
document
.
getElementById
(
'
js-vue-notes
'
);
export
default
()
=>
{
const
el
=
document
.
getElementById
(
'
js-vue-notes
'
);
if
(
!
el
)
{
return
;
}
if
(
el
)
{
// eslint-disable-next-line no-new
new
Vue
({
el
,
...
...
@@ -59,4 +62,4 @@ if (el) {
initDiscussionFilters
(
store
);
initSortDiscussions
(
store
);
initTimelineToggle
(
store
);
}
}
;
app/assets/javascripts/pages/projects/issues/show.js
View file @
850b8bbd
...
...
@@ -3,10 +3,10 @@ import ShortcutsIssuable from '~/behaviors/shortcuts/shortcuts_issuable';
import
initIssuableSidebar
from
'
~/init_issuable_sidebar
'
;
import
{
IssuableType
}
from
'
~/issuable_show/constants
'
;
import
Issue
from
'
~/issue
'
;
import
'
~/notes/index
'
;
import
initIncidentApp
from
'
~/issue_show/incident
'
;
import
{
initIssuableApp
,
initIssueHeaderActions
}
from
'
~/issue_show/issue
'
;
import
{
parseIssuableData
}
from
'
~/issue_show/utils/parse_data
'
;
import
initNotesApp
from
'
~/notes/index
'
;
import
{
store
}
from
'
~/notes/stores
'
;
import
initRelatedMergeRequestsApp
from
'
~/related_merge_requests
'
;
import
initSentryErrorStackTraceApp
from
'
~/sentry_error_stack_trace
'
;
...
...
@@ -14,6 +14,8 @@ import initIssuableHeaderWarning from '~/vue_shared/components/issuable/init_iss
import
ZenMode
from
'
~/zen_mode
'
;
export
default
function
initShowIssue
()
{
initNotesApp
();
const
initialDataEl
=
document
.
getElementById
(
'
js-issuable-app
'
);
const
{
issueType
,
...
issuableData
}
=
parseIssuableData
(
initialDataEl
);
...
...
ee/app/assets/javascripts/pages/groups/epics/show/index.js
View file @
850b8bbd
...
...
@@ -2,9 +2,10 @@ import ShortcutsEpic from 'ee/behaviors/shortcuts/shortcuts_epic';
import
initEpicApp
from
'
ee/epic/epic_bundle
'
;
import
EpicTabs
from
'
ee/epic/epic_tabs
'
;
import
loadAwardsHandler
from
'
~/awards_handler
'
;
import
initNotesApp
from
'
~/notes/index
'
;
import
ZenMode
from
'
~/zen_mode
'
;
import
'
~/notes/index
'
;
initNotesApp
();
initEpicApp
();
requestIdleCallback
(()
=>
{
...
...
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