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
701a6936
Commit
701a6936
authored
Feb 24, 2022
by
tarzen chugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 404 when importing gitlab project using right click
parent
f886c642
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/projects/project_new.js
app/assets/javascripts/projects/project_new.js
+2
-2
app/views/projects/_import_project_pane.html.haml
app/views/projects/_import_project_pane.html.haml
+1
-1
No files found.
app/assets/javascripts/projects/project_new.js
View file @
701a6936
...
...
@@ -144,8 +144,8 @@ const bindEvents = () => {
bindHowToImport
();
$
(
'
.btn_import_gitlab_project
'
).
on
(
'
click
'
,
()
=>
{
const
importHref
=
$
(
'
a.btn_import_gitlab_project
'
).
attr
(
'
href
'
);
$
(
'
.btn_import_gitlab_project
'
).
on
(
'
click
contextmenu
'
,
()
=>
{
const
importHref
=
$
(
'
a.btn_import_gitlab_project
'
).
attr
(
'
data-
href
'
);
$
(
'
.btn_import_gitlab_project
'
).
attr
(
'
href
'
,
`
${
importHref
}
?namespace_id=
${
$
(
...
...
app/views/projects/_import_project_pane.html.haml
View file @
701a6936
...
...
@@ -8,7 +8,7 @@
.import-buttons
-
if
gitlab_project_import_enabled?
.import_gitlab_project.has-tooltip
{
data:
{
container:
'body'
,
qa_selector:
'gitlab_import_button'
}
}
=
link_to
new_import_gitlab_project_path
,
class:
'gl-button btn-default btn btn_import_gitlab_project js-import-project-btn'
,
data:
{
platform:
'gitlab_export'
,
**
tracking_attrs_data
(
track_label
,
'click_button'
,
'gitlab_export'
)
}
do
=
link_to
'#'
,
class:
'gl-button btn-default btn btn_import_gitlab_project js-import-project-btn'
,
data:
{
href:
new_import_gitlab_project_path
,
platform:
'gitlab_export'
,
**
tracking_attrs_data
(
track_label
,
'click_button'
,
'gitlab_export'
)
}
do
.gl-button-icon
=
sprite_icon
(
'tanuki'
)
=
_
(
"GitLab export"
)
...
...
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