File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -3389,6 +3389,7 @@ management = Secrets Management
3389
3389
3390
3390
[actions]
3391
3391
actions = Actions
3392
+ rerun = Rerun
3392
3393
3393
3394
unit.desc = Manage actions
3394
3395
Original file line number Diff line number Diff line change 2
2
3
3
<div class="page-content repository">
4
4
{{template "repo/header" .}}
5
- <div id="repo-action-view" data-run-index="{{.RunIndex}}" data-job-index="{{.JobIndex}}" data-actions-url="{{.ActionsURL}}"></div>
5
+ <div id="repo-action-view"
6
+ data-run-index="{{.RunIndex}}"
7
+ data-job-index="{{.JobIndex}}"
8
+ data-actions-url="{{.ActionsURL}}"
9
+ data-locale-approve="{{.locale.Tr "repo.diff.review.approve"}}"
10
+ data-locale-cancel="{{.locale.Tr "cancel"}}"
11
+ data-locale-rerun="{{.locale.Tr "actions.rerun"}}"
12
+ >
13
+ </div>
6
14
</div>
7
15
8
16
{{template "base/footer" .}}
Original file line number Diff line number Diff line change 6
6
<div class =" action-title" >
7
7
{{ run.title }}
8
8
</div >
9
- <button class =" action-control-button text green" @click =" approveRun()" v-if =" run.canApprove" >
9
+ <button :data-tooltip-content = " locale.approve " class =" action-control-button text green" @click =" approveRun()" v-if =" run.canApprove" >
10
10
<SvgIcon name =" octicon-play" :size =" 20" />
11
11
</button >
12
- <button class =" action-control-button text red" @click =" cancelRun()" v-else-if =" run.canCancel" >
12
+ <button :data-tooltip-content = " locale.cancel " class =" action-control-button text red" @click =" cancelRun()" v-else-if =" run.canCancel" >
13
13
<SvgIcon name =" octicon-x-circle-fill" :size =" 20" />
14
14
</button >
15
- <button class =" action-control-button text green" @click =" rerun()" v-else-if =" run.canRerun" >
15
+ <button :data-tooltip-content = " locale.rerun " class =" action-control-button text green" @click =" rerun()" v-else-if =" run.canRerun" >
16
16
<SvgIcon name =" octicon-sync" :size =" 20" />
17
17
</button >
18
18
</div >
@@ -93,6 +93,7 @@ const sfc = {
93
93
runIndex: String ,
94
94
jobIndex: String ,
95
95
actionsURL: String ,
96
+ locale: Object ,
96
97
},
97
98
98
99
data () {
@@ -314,6 +315,11 @@ export function initRepositoryActionView() {
314
315
runIndex: el .getAttribute (' data-run-index' ),
315
316
jobIndex: el .getAttribute (' data-job-index' ),
316
317
actionsURL: el .getAttribute (' data-actions-url' ),
318
+ locale: {
319
+ approve: el .getAttribute (' data-locale-approve' ),
320
+ cancel: el .getAttribute (' data-locale-cancel' ),
321
+ rerun: el .getAttribute (' data-locale-rerun' ),
322
+ }
317
323
});
318
324
view .mount (el);
319
325
}
You can’t perform that action at this time.
0 commit comments