mirror of https://github.com/zulip/zulip.git
setting_ui: Fix sorting by "Expires at" column.
Previously, the sorting was broken due to incorrect referencing of the property. The code has been updated to use the "expiry_date" property instead of "expires_at". Fixes #29005.
This commit is contained in:
parent
1fdc09a88f
commit
bf464db61b
|
@ -127,7 +127,7 @@ function populate_invites(invites_data: {invites: Invite[]}): void {
|
|||
...ListWidget.generic_sort_functions("alphabetic", ["ref"]),
|
||||
...ListWidget.generic_sort_functions("numeric", [
|
||||
"invited",
|
||||
"expires_at",
|
||||
"expiry_date",
|
||||
"invited_as",
|
||||
]),
|
||||
},
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<th data-sort="alphabetic" data-sort-prop="ref">{{t "Invited by" }}</th>
|
||||
{{/if}}
|
||||
<th data-sort="numeric" data-sort-prop="invited">{{t "Invited at" }}</th>
|
||||
<th data-sort="numeric" data-sort-prop="expires_at">{{t "Expires at" }}</th>
|
||||
<th data-sort="numeric" data-sort-prop="expiry_date">{{t "Expires at" }}</th>
|
||||
<th data-sort="numeric" data-sort-prop="invited_as">{{t "Invited as" }}</th>
|
||||
<th class="actions">{{t "Actions" }}</th>
|
||||
</thead>
|
||||
|
|
Loading…
Reference in New Issue