From 450a439c550fd8dc99784eb53ad4f8d173df26d4 Mon Sep 17 00:00:00 2001 From: Roger Cortez Date: Sat, 13 Jul 2024 17:33:51 +0800 Subject: [PATCH] Fixed a typo in index.pug --- server/views/index.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/views/index.pug b/server/views/index.pug index fa5dc16..fb394a3 100644 --- a/server/views/index.pug +++ b/server/views/index.pug @@ -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 "; @@ -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');