Skip to content
Snippets Groups Projects

Resolve "Customize branch name when using create branch in an issue"

Compare and Show latest version
1 file
+ 5
6
Compare changes
  • Side-by-side
  • Inline
@@ -248,8 +248,7 @@ export default class CreateMergeRequestDropdown {
@@ -248,8 +248,7 @@ export default class CreateMergeRequestDropdown {
initDroplab() {
initDroplab() {
this.droplab = new DropLab();
this.droplab = new DropLab();
this.droplab.init(this.dropdownToggle, this.dropdownList, [InputSetter],
this.droplab.init(this.dropdownToggle, this.dropdownList, [InputSetter], this.getDroplabConfig());
this.getDroplabConfig());
}
}
isBusy() {
isBusy() {
@@ -299,17 +298,17 @@ export default class CreateMergeRequestDropdown {
@@ -299,17 +298,17 @@ export default class CreateMergeRequestDropdown {
return true;
return true;
}
}
onClickCreateMergeRequestButton(e) {
onClickCreateMergeRequestButton(event) {
let xhr = null;
let xhr = null;
e.preventDefault();
event.preventDefault();
if (this.isBusy()) {
if (this.isBusy()) {
return;
return;
}
}
if (e.target.dataset.action === CREATE_MERGE_REQUEST) {
if (event.target.dataset.action === CREATE_MERGE_REQUEST) {
xhr = this.createMergeRequest();
xhr = this.createMergeRequest();
} else if (e.target.dataset.action === CREATE_BRANCH) {
} else if (event.target.dataset.action === CREATE_BRANCH) {
xhr = this.createBranch();
xhr = this.createBranch();
}
}
Loading