Skip to content

Commit

Permalink
Fixed a typo in index.pug
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Cortez committed Jul 13, 2024
1 parent a96f221 commit 450a439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ block content
document.getElementById('repoActionButton').innerText = "Revoke"
// Update the href attribute of the button
//- document.getElementById('repoWebhookAction').href = `/webhook/config?repo=${repoName}&hassetwebhook=true`;
document.getElementById('repoWebhookAction').setAttribute('onclick', `handleRepoAction('${repoName}', true)`);
document.getElementById('repoActionButton').setAttribute('onclick', `handleRepoAction('${repoName}', true)`);

} else {
document.getElementById('repoWebhookStatus').innerText = "You haven't set up linkedin-auto-post for the repository ";
Expand All @@ -212,7 +212,7 @@ block content

document.getElementById('repoActionButton').innerText = "Set Now"
//- document.getElementById('repoWebhookAction').href = `/webhook/config?repo=${repoName}&hassetwebhook=false`;
document.getElementById('repoWebhookAction').setAttribute('onclick', `handleRepoAction('${repoName}', false)`);
document.getElementById('repoActionButton').setAttribute('onclick', `handleRepoAction('${repoName}', false)`);
}
//- document.getElementById('repoNameModal').innerText = repoName + " - Do you want to modify it?";
const modal = document.getElementById('repoModal');
Expand Down

0 comments on commit 450a439

Please sign in to comment.