diff --git a/src/App.vue b/src/App.vue
index 2c6c913..57e977f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -175,6 +175,7 @@ const isPaymentOpen = ref(false)
const paymentModalInvoice = ref(null)
const paymentModalError = ref('')
const isPaymentModalLoading = ref(false)
+const paymentModalLoadingMethod = ref('')
const paymentInvoiceMethod = ref('lightning')
const paymentInvoiceQrUrl = ref('')
const currentPath = ref(window.location.pathname)
@@ -1547,20 +1548,24 @@ const closePayment = () => {
paymentModalError.value = ''
paymentInvoiceMethod.value = 'lightning'
isPaymentModalLoading.value = false
+ paymentModalLoadingMethod.value = ''
}
const takeCashPayment = async () => {
if (!selectedPaymentMember.value) return
isPaymentModalLoading.value = true
+ paymentModalLoadingMethod.value = 'cash'
paymentModalError.value = ''
await markManualPayment(selectedPaymentMember.value.membershipId)
isPaymentModalLoading.value = false
+ paymentModalLoadingMethod.value = ''
if (!adminActionError.value) closePayment()
}
const createBitcoinPayment = async () => {
if (!selectedPaymentMember.value) return
isPaymentModalLoading.value = true
+ paymentModalLoadingMethod.value = 'bitcoin'
paymentModalError.value = ''
adminActionError.value = ''
adminActionMessage.value = ''
@@ -1578,6 +1583,7 @@ const createBitcoinPayment = async () => {
paymentModalError.value = error instanceof Error ? error.message : 'Could not create Bitcoin invoice.'
} finally {
isPaymentModalLoading.value = false
+ paymentModalLoadingMethod.value = ''
}
}
@@ -3401,6 +3407,9 @@ watch(mobileMenuOpen, (open) => {
₿ Bitcoin
BTCPay invoice
{{ appConfig.btcpayEnabled ? 'Create a Bitcoin checkout invoice.' : 'BTCPay is not configured.' }}
+
+
+