File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
templates/repo/settings/webhook Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
<div class="ui right">
7
7
<!-- the button is wrapped with a span because the tooltip doesn't show on hover if we put data-tooltip-content directly on the button -->
8
8
<span data-tooltip-content="{{if or $isNew .Webhook.IsActive}}{{ctx.Locale.Tr "repo.settings.webhook.test_delivery_desc"}}{{else}}{{ctx.Locale.Tr "repo.settings.webhook.test_delivery_desc_disabled"}}{{end}}">
9
- <button class="ui teal tiny button{{if not (or $isNew .Webhook.IsActive)}} disabled{{end}}" id="test-delivery" data-link="{{.Link}}/test" data-redirect="{{.Link}}">{{ctx.Locale.Tr "repo.settings.webhook.test_delivery"}}</button>
9
+ <button class="ui teal tiny button{{if not (or $isNew .Webhook.IsActive)}} disabled{{end}}" id="test-delivery" data-link="{{.Link}}/test" data-redirect="{{.Link}}">
10
+ <span class="text">{{ctx.Locale.Tr "repo.settings.webhook.test_delivery"}}</span>
11
+ </button>
10
12
</span>
11
13
</div>
12
14
{{end}}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export function initCompWebHookEditor() {
35
35
36
36
// Test delivery
37
37
document . getElementById ( 'test-delivery' ) ?. addEventListener ( 'click' , async function ( ) {
38
- this . classList . add ( 'loading' , 'disabled' ) ;
38
+ this . classList . add ( 'is- loading' , 'disabled' ) ;
39
39
await POST ( this . getAttribute ( 'data-link' ) ) ;
40
40
setTimeout ( ( ) => {
41
41
window . location . href = this . getAttribute ( 'data-redirect' ) ;
You can’t perform that action at this time.
0 commit comments