Skip to content

Commit

Permalink
Merge pull request Code-For-Humans-School#102 from rogershi-dev/featu…
Browse files Browse the repository at this point in the history
…re/registration-auth

Fixed a typo in index.pug
  • Loading branch information
rogershi-dev authored Jul 13, 2024
2 parents 9f47a1c + 450a439 commit 0ae2500
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 0ae2500

Please sign in to comment.