refactor(admin): drive members status <select>s from STATUS_LABELS
The status options were duplicated three times in admin/members/index.vue (filter dropdown, edit-modal dropdown, statusLabel helper). The recent "Pending Payment" → "Payment setup incomplete" rename only landed in two of the three sites. Both <select>s now v-for over the existing STATUS_LABELS const, so any future label change happens in one place. Side effect: the edit-modal dropdown order is now (active, pending_payment, suspended, cancelled) to match the filter dropdown — was previously pending_payment-first.
This commit is contained in:
parent
d9444b022b
commit
441a5f5608
1 changed files with 10 additions and 8 deletions
|
|
@ -41,10 +41,11 @@
|
||||||
<div class="field" style="margin-bottom: 0">
|
<div class="field" style="margin-bottom: 0">
|
||||||
<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
|
||||||
<option value="pending_payment">Payment setup incomplete</option>
|
v-for="(label, value) in STATUS_LABELS"
|
||||||
<option value="suspended">Suspended</option>
|
:key="value"
|
||||||
<option value="cancelled">Cancelled</option>
|
:value="value"
|
||||||
|
>{{ label }}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -371,10 +372,11 @@
|
||||||
<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">Payment setup incomplete</option>
|
<option
|
||||||
<option value="active">Active</option>
|
v-for="(label, value) in STATUS_LABELS"
|
||||||
<option value="suspended">Suspended</option>
|
:key="value"
|
||||||
<option value="cancelled">Cancelled</option>
|
:value="value"
|
||||||
|
>{{ label }}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-actions">
|
<div class="modal-actions">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue