|
|
@ -163,7 +163,7 @@ |
|
|
|
{{ $t("Would you like to reactivate this account?")}} |
|
|
|
</div> |
|
|
|
</v-spacer> |
|
|
|
<button class="tw-bg-primary-1 tw-text-white hover:tw-bg-primary-light tw-text-[18px] tw-rounded-[16px] tw-px-[86px] tw-py-[13px]"> |
|
|
|
<button @click="ReactivateAccount()" class="tw-bg-primary-1 tw-text-white hover:tw-bg-primary-light tw-text-[18px] tw-rounded-[16px] tw-px-[86px] tw-py-[13px]"> |
|
|
|
{{ $t("Reactivate my account") }} |
|
|
|
</button> |
|
|
|
<!-- <v-btn class="primary tw-w-auto" rounded |
|
|
@ -317,6 +317,8 @@ export default { |
|
|
|
//console.log(JSON.stringify(response)) |
|
|
|
if(response && response.data){ |
|
|
|
|
|
|
|
this.dialog = false; |
|
|
|
|
|
|
|
clearInterval(this.timer); |
|
|
|
this.timer = setInterval(() => { |
|
|
|
if (this.countdown > 0) { |
|
|
@ -331,8 +333,27 @@ export default { |
|
|
|
.catch((error) => { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
ReactivateAccount(){ |
|
|
|
this.$axios |
|
|
|
.post( |
|
|
|
`/trending/api/Members/ReactivateAccount?Email=${this.Email}` |
|
|
|
) |
|
|
|
.then((response) => { |
|
|
|
//console.log(JSON.stringify(response)) |
|
|
|
if(response && response.data && response.data.DATA && response.data.DATA.rel){ |
|
|
|
let data = response.data.DATA.rel |
|
|
|
if(data){ |
|
|
|
this.deleteDialog = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((error) => { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
beforeUnmount() { |
|
|
|
clearInterval(this.timeout); |
|
|
|