set unsubscribe inner text after subscribe

This commit is contained in:
Simon 2023-08-26 17:38:39 +07:00
parent 7c47c980f3
commit ef89daf1a1
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -433,7 +433,7 @@ function buttonSuccess(button) {
if (buttonSpan.innerHTML === 'Subscribe') { if (buttonSpan.innerHTML === 'Subscribe') {
buttonSpan.innerHTML = 'Success'; buttonSpan.innerHTML = 'Success';
setTimeout(() => { setTimeout(() => {
buttonSpan.innerHTML = 'Subscribe'; buttonSpan.innerHTML = 'Unsubscribe';
}, 2000); }, 2000);
} else { } else {
buttonSpan.innerHTML = checkmarkIcon; buttonSpan.innerHTML = checkmarkIcon;