Skip to content

Commit 2bb0feb

Browse files
committed
use in webhook editor
1 parent 83ef717 commit 2bb0feb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

templates/repo/settings/webhook/history.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<div class="ui right">
77
<!-- 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 -->
88
<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>
1012
</span>
1113
</div>
1214
{{end}}

web_src/js/features/comp/WebHookEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function initCompWebHookEditor() {
3535

3636
// Test delivery
3737
document.getElementById('test-delivery')?.addEventListener('click', async function () {
38-
this.classList.add('loading', 'disabled');
38+
this.classList.add('is-loading', 'disabled');
3939
await POST(this.getAttribute('data-link'));
4040
setTimeout(() => {
4141
window.location.href = this.getAttribute('data-redirect');

0 commit comments

Comments
 (0)