fixed bug with infinity notification

This commit is contained in:
Kostya
2023-12-20 17:50:37 +03:00
parent 4c4355ce57
commit e6cfb7a32d
2 changed files with 6 additions and 21 deletions

View File

@@ -31,23 +31,5 @@
<!-- built files will be auto injected -->
</body>
<script src='https://www.google.com/recaptcha/api.js'></script>
<script>
function get_action(form) {
var v = grecaptcha.getResponse();
console.log(v);
if (v.length == 0) {
document.getElementById('captcha').innerHTML = "You can't leave Captcha Code empty";
return false;
}
else {
document.getElementById('captcha').innerHTML = "Captcha completed";
return true;
}
}
</script>
</html>

View File

@@ -49,7 +49,7 @@
</div>
</div>
</section>
<payments-modal v-if="openModal" @notifacetionmoney="NotificationMethod" @closemodal="openModal = false" :payments="payments"></payments-modal>
<payments-modal v-if="openModal" @notifacetionmoney="NotificationEventListener" @closemodal="openModal = false" :payments="payments"></payments-modal>
<notiicationwindow-component @notificationremove="NotificationMethod" :notification="notification"></notiicationwindow-component>
</div>
</template>
@@ -112,9 +112,12 @@ export default {
this.openModal = true
this.payments = false
},
NotificationMethod() {
this.notification = !this.notification
NotificationEventListener() {
this.notification = true
this.openModal = false
},
NotificationMethod() {
this.notification = false
}
// formatNumber(number) {
// return number < 10 ? `0${number}` : number;