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