Last active
December 6, 2021 23:56
-
-
Save ShariqT/66ef3e2f60d04945dee80478d67264b7 to your computer and use it in GitHub Desktop.
list-postcards2.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ul> | |
<li v-for="postcard in postcards"> | |
<span v-if="postcard.from != null"> | |
From {{ postcard.from.name }} to {{ postcard.to.name }}. | |
</span> | |
<span v-else> | |
From *Address Missing* to {{ postcard.to.name }}. | |
</span> | |
<span v-if="canCancel(postcard.send_date)" class="cancel">Cancel</span> | |
</li> | |
</ul> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment