FIX: show updated_at for invite sent date.
This commit is contained in:
parent
941162e90e
commit
2dd47df6d1
|
@ -80,7 +80,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<td>{{unbound invite.email}}</td>
|
<td>{{unbound invite.email}}</td>
|
||||||
<td>{{format-date invite.created_at}}</td>
|
<td>{{format-date invite.updated_at}}</td>
|
||||||
<td>
|
<td>
|
||||||
{{#if invite.expired}}
|
{{#if invite.expired}}
|
||||||
<div>{{i18n 'user.invited.expired'}}</div>
|
<div>{{i18n 'user.invited.expired'}}</div>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class InviteSerializer < ApplicationSerializer
|
class InviteSerializer < ApplicationSerializer
|
||||||
|
|
||||||
attributes :email, :created_at, :redeemed_at, :expired, :user
|
attributes :email, :updated_at, :redeemed_at, :expired, :user
|
||||||
|
|
||||||
def include_email?
|
def include_email?
|
||||||
!object.redeemed?
|
!object.redeemed?
|
||||||
|
|
Loading…
Reference in New Issue