Skip to content

Commit e5d38a9

Browse files
committed
Use "warning" symbol when Webhook creation fails
This provides better visual feedback than the "X" used previously.
1 parent 259ae2a commit e5d38a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SourceGithub/files/sourcegithub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jQuery(document).ready(function($) {
2929
type: 'POST',
3030
url: SourceGithub.rest_api(repo_id + '/webhook'),
3131
success: function(data, textStatus, xhr) {
32-
status_icon.removeClass("fa-times red").addClass("fa-check green");
32+
status_icon.removeClass("fa-exclamation-triangle red").addClass("fa-check green");
3333
status_message.text(xhr.statusText);
3434
$('#webhook_create > button').prop("disabled", true);
3535
},
3636
error: function(xhr, textStatus, errorThrown) {
37-
status_icon.removeClass("fa-check green").addClass("fa-times red");
37+
status_icon.removeClass("fa-check green").addClass("fa-exclamation-triangle red");
3838
status_message.text(errorThrown);
3939
console.error(
4040
'Webhook creation failed',

0 commit comments

Comments
 (0)