Skip to content

Commit

Permalink
#5378 expired check
Browse files Browse the repository at this point in the history
  • Loading branch information
prachi00 committed Mar 25, 2023
1 parent e526c24 commit 49d8d7b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/gallery/GalleryItemTabsPanel/GalleryItemOffers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@
<NeoSecondaryButton
v-if="
(props.row.caller === accountId || isOwner) &&
props.row.status === OfferStatusType.ACTIVE
props.row.status === OfferStatusType.ACTIVE &&
expirationTime(props.row.expiration) !== 'Expired'
"
variant="primary"
@click.native="onWithdrawOffer(props.row.caller)"
>Cancel</NeoSecondaryButton
>
<NeoSecondaryButton
v-if="isOwner && props.row.status === OfferStatusType.ACTIVE"
v-if="
isOwner &&
props.row.status === OfferStatusType.ACTIVE &&
expirationTime(props.row.expiration) !== 'Expired'
"
variant="info"
@click.native="onAcceptOffer(props.row.caller)"
>Accept</NeoSecondaryButton
Expand Down

0 comments on commit 49d8d7b

Please sign in to comment.