Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Commit 73eb73f

Browse files
committed
Continue
1 parent 969ac41 commit 73eb73f

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

html/options.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
<form>
99
<div class="pts pbs row">
1010
<div class="w40p txt-center browser-style">
11-
<input type="checkbox" id="enable_buttons_to_copy_source_and_target_branches_name">
11+
<input type="checkbox" id="display_source_and_target_branches">
1212
</div>
1313
<div>
14-
<label for="enable_buttons_to_copy_source_and_target_branches_name">Enable buttons allowing to copy source and target branches name</label>
14+
<label for="display_source_and_target_branches">Display source and target branches</label>
1515
</div>
1616
</div>
17+
<div class="pll pbs browser-style man" id="display-source-target-branches-options">
18+
<input type="checkbox" id="enable_buttons_to_copy_source_and_target_branches_name"> <label for="enable_buttons_to_copy_source_and_target_branches_name">Enable buttons allowing to copy source and target branches name</label>
19+
</div>
1720
<div class="pts row">
1821
<div class="w40p txt-center browser-style">
1922
<input type="checkbox" id="enable_button_to_copy_mr_info">

js/options.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
this.submitButtonInOptionsForm = this.optionsForm.querySelector('button[type="submit"]');
2525

2626
this.enableButtonsToCopySourceAndTargetBranchesNameCheckbox = document.querySelector('input#enable_buttons_to_copy_source_and_target_branches_name');
27+
this.displaySourceTargetBranchesOptionsDiv = document.querySelector('div#display-source-target-branches-options');
2728

2829
this.copyMrInfoOptionsDiv = document.querySelector('div#copy-mr-info-options');
2930
this.enableButtonToCopyMrInfoCheckbox = document.querySelector('input#enable_button_to_copy_mr_info');

js/preferences.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
globals.Gmrle.PreferencesManager = class {
77
get defaults() {
88
return {
9+
display_source_and_target_branches: true,
910
enable_buttons_to_copy_source_and_target_branches_name: true,
1011
enable_button_to_copy_mr_info: true,
1112
copy_mr_info_format: 'MR {MR_ID} (from {MR_AUTHOR_NAME}): {MR_TITLE}\n{MR_URL}',

0 commit comments

Comments
 (0)