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
d4895b36
Commit
d4895b36
authored
May 08, 2018
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move SquashBeforeMerge vue component
parent
3c93c02e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
6 deletions
+69
-6
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.vue
...idget/components/states/mr_widget_squash_before_merge.vue
+3
-3
app/assets/javascripts/vue_merge_request_widget/dependencies.js
...sets/javascripts/vue_merge_request_widget/dependencies.js
+1
-1
changelogs/unreleased/refactor-move-squash-before-merge-vue-component.yml
...eased/refactor-move-squash-before-merge-vue-component.yml
+5
-0
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_ready_to_merge.js
...uest_widget/components/states/mr_widget_ready_to_merge.js
+1
-1
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.vue
...idget/components/states/mr_widget_squash_before_merge.vue
+58
-0
qa/qa/ee/page/merge_request/show.rb
qa/qa/ee/page/merge_request/show.rb
+1
-1
No files found.
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.
js
→
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.
vue
View file @
d4895b36
...
...
@@ -10,6 +10,6 @@ In EE, the configuration extends this object to add a functioning squash-before-
button.
*/
export
default
{
template
:
''
,
};
<
script
>
export
default
{};
</
script
>
app/assets/javascripts/vue_merge_request_widget/dependencies.js
View file @
d4895b36
...
...
@@ -40,7 +40,7 @@ export { default as MRWidgetService } from 'ee/vue_merge_request_widget/services
export
{
default
as
eventHub
}
from
'
./event_hub
'
;
export
{
default
as
getStateKey
}
from
'
ee/vue_merge_request_widget/stores/get_state_key
'
;
export
{
default
as
stateMaps
}
from
'
ee/vue_merge_request_widget/stores/state_maps
'
;
export
{
default
as
SquashBeforeMerge
}
from
'
ee/vue_merge_request_widget/components/states/mr_widget_squash_before_merge
'
;
export
{
default
as
SquashBeforeMerge
}
from
'
ee/vue_merge_request_widget/components/states/mr_widget_squash_before_merge
.vue
'
;
export
{
default
as
notify
}
from
'
../lib/utils/notify
'
;
export
{
default
as
SourceBranchRemovalStatus
}
from
'
./components/source_branch_removal_status.vue
'
;
...
...
changelogs/unreleased/refactor-move-squash-before-merge-vue-component.yml
0 → 100644
View file @
d4895b36
---
title
:
Move SquashBeforeMerge vue component
merge_request
:
18813
author
:
George Tsiolis
type
:
performance
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_ready_to_merge.js
View file @
d4895b36
import
eventHub
from
'
~/vue_merge_request_widget/event_hub
'
;
import
ReadyToMergeState
from
'
~/vue_merge_request_widget/components/states/ready_to_merge.vue
'
;
import
SquashBeforeMerge
from
'
./mr_widget_squash_before_merge
'
;
import
SquashBeforeMerge
from
'
./mr_widget_squash_before_merge
.vue
'
;
export
default
{
extends
:
ReadyToMergeState
,
...
...
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.
js
→
ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.
vue
View file @
d4895b36
<
script
>
import
eventHub
from
'
~/vue_merge_request_widget/event_hub
'
;
import
CESquashBeforeMerge
from
'
~/vue_merge_request_widget/components/states/mr_widget_squash_before_merge
'
;
import
CESquashBeforeMerge
from
'
~/vue_merge_request_widget/components/states/mr_widget_squash_before_merge
.vue
'
;
export
default
{
extends
:
CESquashBeforeMerge
,
...
...
@@ -23,29 +24,35 @@ export default {
eventHub
.
$emit
(
'
MRWidgetUpdateSquash
'
,
this
.
squashBeforeMerge
);
},
},
template
:
`
<div class="accept-control inline">
<label class="merge-param-checkbox">
<input
type="checkbox"
name="squash"
class="qa-squash-checkbox"
:disabled="isMergeButtonDisabled"
v-model="squashBeforeMerge"
@change="updateSquashModel"/>
Squash commits
</label>
<a
:href="mr.squashBeforeMergeHelpPath"
data-title="About this feature"
data-toggle="tooltip"
data-placement="bottom"
target="_blank"
rel="noopener noreferrer nofollow"
data-container="body">
<i
class="fa fa-question-circle"
aria-hidden="true"></i>
</a>
</div>`
,
};
</
script
>
<
template
>
<div
class=
"accept-control inline"
>
<label
class=
"merge-param-checkbox"
>
<input
type=
"checkbox"
name=
"squash"
class=
"qa-squash-checkbox"
:disabled=
"isMergeButtonDisabled"
v-model=
"squashBeforeMerge"
@
change=
"updateSquashModel"
/>
Squash commits
</label>
<a
:href=
"mr.squashBeforeMergeHelpPath"
data-title=
"About this feature"
data-toggle=
"tooltip"
data-placement=
"bottom"
target=
"_blank"
rel=
"noopener noreferrer nofollow"
data-container=
"body"
>
<i
class=
"fa fa-question-circle"
aria-hidden=
"true"
>
</i>
</a>
</div>
</
template
>
qa/qa/ee/page/merge_request/show.rb
View file @
d4895b36
...
...
@@ -9,7 +9,7 @@ module QA
element
:head_mismatch
,
"The source branch HEAD has recently changed."
end
view
'ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.
js
'
do
view
'ee/app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_squash_before_merge.
vue
'
do
element
:squash_checkbox
end
end
...
...
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