mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Web checkin: Render special cases of pending state in search (Z#23154934) (#4193)
This commit is contained in:
@@ -21,6 +21,8 @@ export default {
|
||||
computed: {
|
||||
status() {
|
||||
if (this.position.checkins.length) return 'redeemed';
|
||||
if (this.position.order__status === 'n' && this.position.order__valid_if_pending) return 'pending_valid';
|
||||
if (this.position.order__status === 'n' && this.position.order__require_approval) return 'require_approval';
|
||||
return this.position.order__status
|
||||
},
|
||||
itemvar() {
|
||||
|
||||
@@ -43,6 +43,8 @@ window.vapp = new Vue({
|
||||
'status.n': gettext('Unpaid'),
|
||||
'status.c': gettext('Canceled'),
|
||||
'status.e': gettext('Canceled'),
|
||||
'status.pending_valid': gettext('Confirmed'),
|
||||
'status.require_approval': gettext('Approval pending'),
|
||||
'status.redeemed': gettext('Redeemed'),
|
||||
'modal.cancel': gettext('Cancel'),
|
||||
'modal.continue': gettext('Continue'),
|
||||
|
||||
@@ -74,10 +74,10 @@ a.searchresult {
|
||||
align-items: center;
|
||||
font-size: 140%;
|
||||
|
||||
&.status-p {
|
||||
&.status-p, &.status-pending_valid {
|
||||
background: $brand-success;
|
||||
}
|
||||
&.status-c, &.status-e, &.status-n {
|
||||
&.status-c, &.status-e, &.status-n, &.status-require_approval {
|
||||
background: $brand-danger;
|
||||
}
|
||||
&.status-redeemed {
|
||||
|
||||
Reference in New Issue
Block a user