File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 363
363
{{end}}
364
364
</div>
365
365
</div>
366
- <div class="dib ml-3">{{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}}</div>
367
- <div class="instruct" style="display:none">
366
+ <div class="instruct-toggle ml-3">{{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}}</div>
367
+ <div class="instruct-content " style="display:none">
368
368
<div class="ui divider"></div>
369
369
<div><h3 class="di">{{$.i18n.Tr "step1"}} </h3>{{$.i18n.Tr "repo.pulls.merge_instruction_step1_desc"}}</div>
370
370
<div class="ui secondary segment">
Original file line number Diff line number Diff line change @@ -1120,6 +1120,8 @@ async function initRepository() {
1120
1120
e . preventDefault ( ) ;
1121
1121
$ ( `.${ $ ( this ) . data ( 'do' ) } -fields` ) . show ( ) ;
1122
1122
$ ( this ) . parent ( ) . hide ( ) ;
1123
+ $ ( '.instruct-toggle' ) . hide ( ) ;
1124
+ $ ( '.instruct-content' ) . hide ( ) ;
1123
1125
} ) ;
1124
1126
$ ( '.merge-button > .dropdown' ) . dropdown ( {
1125
1127
onChange ( _text , _value , $choice ) {
@@ -1133,6 +1135,7 @@ async function initRepository() {
1133
1135
e . preventDefault ( ) ;
1134
1136
$ ( this ) . closest ( '.form' ) . hide ( ) ;
1135
1137
$mergeButton . parent ( ) . show ( ) ;
1138
+ $ ( '.instruct-toggle' ) . show ( ) ;
1136
1139
} ) ;
1137
1140
initReactionSelector ( ) ;
1138
1141
}
@@ -1199,7 +1202,7 @@ async function initRepository() {
1199
1202
1200
1203
function initPullRequestMergeInstruction ( ) {
1201
1204
$ ( '.show-instruction' ) . on ( 'click' , ( ) => {
1202
- $ ( '.instruct' ) . toggle ( ) ;
1205
+ $ ( '.instruct-content ' ) . toggle ( ) ;
1203
1206
} ) ;
1204
1207
}
1205
1208
Original file line number Diff line number Diff line change 593
593
}
594
594
595
595
& .view.issue {
596
+ .instruct-toggle {
597
+ display : inline-block ;
598
+ }
599
+
596
600
.title {
597
601
padding-bottom : 0 !important ;
598
602
You can’t perform that action at this time.
0 commit comments