BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e0df4a9e
Commit
e0df4a9e
authored
Sep 28, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes the target branch and only uses the source branch.
parent
74bf6b20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
16 deletions
+2
-16
repo_commit_section.vue
...ssets/javascripts/repo/components/repo_commit_section.vue
+2
-2
repo_edit_button.vue
app/assets/javascripts/repo/components/repo_edit_button.vue
+0
-10
index.js
app/assets/javascripts/repo/index.js
+0
-3
repo_store.js
app/assets/javascripts/repo/stores/repo_store.js
+0
-1
No files found.
app/assets/javascripts/repo/components/repo_commit_section.vue
View file @
e0df4a9e
...
...
@@ -37,7 +37,7 @@ export default {
content
:
f
.
newContent
,
}));
const
payload
=
{
branch
:
Store
.
targe
tBranch
,
branch
:
Store
.
curren
tBranch
,
commit_message
:
commitMessage
,
actions
,
};
...
...
@@ -105,7 +105,7 @@ export default {
</label>
<div
class=
"col-md-6"
>
<span
class=
"help-block"
>
{{
targe
tBranch
}}
{{
curren
tBranch
}}
</span>
</div>
</div>
...
...
app/assets/javascripts/repo/components/repo_edit_button.vue
View file @
e0df4a9e
...
...
@@ -26,16 +26,6 @@ export default {
this
.
editMode
=
!
this
.
editMode
;
Store
.
toggleBlobView
();
},
toggleProjectRefsForm
()
{
$
(
'.project-refs-form'
).
toggleClass
(
'disabled'
,
this
.
editMode
);
$
(
'.js-tree-ref-target-holder'
).
toggle
(
this
.
editMode
);
},
},
watch
:
{
editMode
()
{
this
.
toggleProjectRefsForm
();
},
},
};
</
script
>
...
...
app/assets/javascripts/repo/index.js
View file @
e0df4a9e
...
...
@@ -11,9 +11,6 @@ function initDropdowns() {
}
function
addEventsForNonVueEls
()
{
$
(
document
).
on
(
'change'
,
'.dropdown'
,
()
=>
{
Store
.
targetBranch
=
$
(
'.project-refs-target-form input[name="ref"]'
).
val
();
});
window
.
onbeforeunload
=
function
confirmUnload
(
e
)
{
const
hasChanged
=
Store
.
openedFiles
...
...
app/assets/javascripts/repo/stores/repo_store.js
View file @
e0df4a9e
...
...
@@ -32,7 +32,6 @@ const RepoStore = {
isCommitable
:
false
,
binary
:
false
,
currentBranch
:
''
,
targetBranch
:
'new-branch'
,
commitMessage
:
''
,
binaryTypes
:
{
png
:
false
,
...
...
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