diff --git a/src/popup/components/ReverseAlias.vue b/src/popup/components/ReverseAlias.vue index c938449..a92f7d9 100644 --- a/src/popup/components/ReverseAlias.vue +++ b/src/popup/components/ReverseAlias.vue @@ -4,13 +4,13 @@

- Create reverse-alias for + Send emails from {{ alias.email }}

To send an email from your alias to a contact, you need to create a - reverse-alias, a special email address. When you send an email to the - reverse-alias, the email will be sent from your alias to the + reverse-alias, a special email address. When you send an email + to the reverse-alias, the email will be sent from your alias to the contact.

This Youtube video can also quickly walk you through the steps: @@ -37,10 +38,16 @@
-

Reverse-alias is created:

+

+ {{ + createdReverseAlias.existed + ? "You have created this reverse-alias before:" + : "Reverse-alias is created:" + }} +

- {{ createdReverseAlias.reverse_alias_address }} + {{ createdReverseAlias.reverse_alias }}

@@ -113,7 +120,8 @@ export default { // Create reverse-alias async createReverseAlias() { - const { data } = await callAPI( + this.loading = true; + const response = await callAPI( API_ROUTE.CREATE_REVERSE_ALIAS, { alias_id: this.alias.id, @@ -123,7 +131,7 @@ export default { }, API_ON_ERR.TOAST ); - this.createdReverseAlias = data; + this.createdReverseAlias = response ? response.data : null; this.loading = false; },