Skip to content

Commit

Permalink
fix: Add status "Withdrawn" and "canceled" into sessions and speakers…
Browse files Browse the repository at this point in the history
… column (#5671)
  • Loading branch information
sachinchauhan2889 committed Nov 17, 2020
1 parent 8561da4 commit b2c158b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/event-statistics-general.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ export default ModelBase.extend({
sessionsSubmitted : attr('number'),
sessionsRejected : attr('number'),
sessionsConfirmed : attr('number'),
sessionsWithdrawn : attr('number'),
sessionsCanceled : attr('number'),
identifier : attr('string'),
sessionsAccepted : attr('number'),
sessionsDraft : attr('number'),
speakersAccepted : attr('number'),
speakersConfirmed : attr('number'),
speakersPending : attr('number'),
speakersRejected : attr('number'),
speakersWithdrawn : attr('number'),
speakersCanceled : attr('number'),
event : belongsTo('event')
});
4 changes: 4 additions & 0 deletions app/serializers/event-statistics-general.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export default ApplicationSerializer.extend({
payload.data.attributes.speakersConfirmed = payload.data.attributes.speakers.confirmed;
payload.data.attributes.speakersPending = payload.data.attributes.speakers.pending;
payload.data.attributes.speakersRejected = payload.data.attributes.speakers.rejected;
payload.data.attributes.speakersWithdrawn = payload.data.attributes.speakers.withdrawn;
payload.data.attributes.speakersCanceled = payload.data.attributes.speakers.canceled;
payload.data.attributes.speakersTotal = payload.data.attributes.speakers.total;
return this._super(...arguments);
},
Expand All @@ -14,6 +16,8 @@ export default ApplicationSerializer.extend({
speakersConfirmed : 'speakersConfirmed',
speakersPending : 'speakersPending',
speakersRejected : 'speakersRejected',
speakersWithdrawn : 'speakersWithdrawn',
speakersCanceled : 'speakersCanceled',
speakers : 'speakersTotal'
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<div class="item">{{t 'Confirmed'}}: {{this.record.sessionsConfirmed}}</div>
<div class="item">{{t 'Pending'}}: {{this.record.sessionsPending}}</div>
<div class="item">{{t 'Rejected'}}: {{this.record.sessionsRejected}}</div>
<div class="item">{{t 'Withdrawn'}}: {{this.record.sessionsWithdrawn}}</div>
<div class="item">{{t 'Canceled'}}: {{this.record.sessionsCanceled}}</div>
</div>
{{else}}
{{t 'No Session Information Added Yet'}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<div class="item">{{t 'Confirmed'}}: {{this.record.speakersConfirmed}}</div>
<div class="item">{{t 'Pending'}}: {{this.record.speakersPending}}</div>
<div class="item">{{t 'Rejected'}}: {{this.record.speakersRejected}}</div>
<div class="item">{{t 'Withdrawn'}}: {{this.record.speakersWithdrawn}}</div>
<div class="item">{{t 'Canceled'}}: {{this.record.speakersCanceled}}</div>
</div>
{{else}}
{{t 'No Speaker Added Yet'}}
Expand Down

1 comment on commit b2c158b

@vercel
Copy link

@vercel vercel bot commented on b2c158b Nov 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.