chore/visual-fidelity-fixes #2
3 changed files with 7 additions and 7 deletions
|
|
@ -42,7 +42,7 @@
|
|||
<select v-model="statusFilter" aria-label="Filter by status">
|
||||
<option value="">All Statuses</option>
|
||||
<option value="active">Active</option>
|
||||
<option value="pending_payment">Pending Payment</option>
|
||||
<option value="pending_payment">Payment setup incomplete</option>
|
||||
<option value="suspended">Suspended</option>
|
||||
<option value="cancelled">Cancelled</option>
|
||||
</select>
|
||||
|
|
@ -269,7 +269,7 @@
|
|||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Circle</th>
|
||||
<th>Tier</th>
|
||||
<th>Contribution</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -373,7 +373,7 @@
|
|||
<div class="field">
|
||||
<label>Status</label>
|
||||
<select v-model="editingMember.status">
|
||||
<option value="pending_payment">Pending Payment</option>
|
||||
<option value="pending_payment">Payment setup incomplete</option>
|
||||
<option value="active">Active</option>
|
||||
<option value="suspended">Suspended</option>
|
||||
<option value="cancelled">Cancelled</option>
|
||||
|
|
@ -490,7 +490,7 @@ const sortDir = ref("desc");
|
|||
|
||||
const STATUS_LABELS = {
|
||||
active: "Active",
|
||||
pending_payment: "Pending",
|
||||
pending_payment: "Payment setup incomplete",
|
||||
suspended: "Suspended",
|
||||
cancelled: "Cancelled",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@
|
|||
form.contributionAmount === Number(memberData.contributionAmount || 0) ||
|
||||
isUpdating
|
||||
"
|
||||
@click="handleUpdateTier"
|
||||
@click="handleUpdateContribution"
|
||||
>
|
||||
{{ isUpdating ? "Updating…" : "Update Contribution" }}
|
||||
</button>
|
||||
|
|
@ -482,7 +482,7 @@ const refreshNextBillingIfStale = async () => {
|
|||
}
|
||||
};
|
||||
|
||||
const handleUpdateTier = async () => {
|
||||
const handleUpdateContribution = async () => {
|
||||
isUpdating.value = true;
|
||||
try {
|
||||
await $fetch("/api/members/update-contribution", {
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ export default defineEventHandler(async (event) => {
|
|||
};
|
||||
} catch (error) {
|
||||
if (error.statusCode) throw error;
|
||||
console.error("Error updating contribution tier:", error);
|
||||
console.error("Error updating contribution amount:", error);
|
||||
throw createError({
|
||||
statusCode: 500,
|
||||
statusMessage: "An unexpected error occurred",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue