Skip to content

Commit 1dd2925

Browse files
committed
feat: added button "Send activation mail AGAIN"
1 parent 5a193bd commit 1dd2925

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

components/UserNotActivatedBlank.vue

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
11
<template>
22
<div class="blank">
3-
Your account isn't activated! View activation mail in your email
3+
<span>Your account isn't activated! View activation mail in your email</span>
4+
<v-btn depressed small color="teal darken-2" class="ml-10" @click="sendActivationMail">
5+
Send activation mail AGAIN
6+
</v-btn>
47
</div>
58
</template>
69

710
<script>
811
export default {
9-
name: 'UserNotActivatedBlank'
12+
name: 'UserNotActivatedBlank',
13+
methods: {
14+
async sendActivationMail () {
15+
await this.$axios.post('users/activate/send')
16+
this.$store.commit('updateSnackbar', {
17+
state: true,
18+
message: "Activation mail sent successfully",
19+
type: 'success',
20+
apiError: false
21+
})
22+
}
23+
}
1024
}
1125
</script>
1226

1327
<style scoped>
1428
.blank {
1529
background-color: var(--yellow);
16-
text-align: center;
30+
display: flex;
31+
align-items: center;
32+
justify-content: center;
1733
color: var(--dark-gray);
1834
font-weight: 500;
1935
font-size: 0.9em;

0 commit comments

Comments
 (0)