Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/User/ProfileDelete.vue
<template> | <template> | ||||
<div class="container"> | <div class="container"> | ||||
<div class="card" id="user-delete"> | <div class="card" id="user-delete"> | ||||
<div class="card-body"> | <div class="card-body"> | ||||
<div class="card-title">Delete this account?</div> | <div class="card-title">Delete this account?</div> | ||||
<div class="card-text"> | <div class="card-text"> | ||||
<p>This will delete the account as well as all domains, users and aliases associated with this account. | <p>This will delete the account as well as all domains, users and aliases associated with this account. | ||||
<strong>This operation is irreversible</strong>.</p> | <strong>This operation is irreversible</strong>.</p> | ||||
<p>As you will not be able to recover anything after this point, please make sure | <p>As you will not be able to recover anything after this point, please make sure | ||||
that you have migrated all data before proceeding.</p> | that you have migrated all data before proceeding.</p> | ||||
<p v-if="supportEmail"> | <p v-if="supportEmail"> | ||||
As we always strive to improve, we would like to ask for 2 minutes of your time. | As we always strive to improve, we would like to ask for 2 minutes of your time. | ||||
The best tool for improvement is feedback from users, and we would like to ask | The best tool for improvement is feedback from users, and we would like to ask | ||||
for a few words about your reasons for leaving our service. Please send your feedback | for a few words about your reasons for leaving our service. Please send your feedback | ||||
to <a :href="'mailto:' + supportEmail">{{ supportEmail }}</a>. | to <a :href="'mailto:' + supportEmail">{{ supportEmail }}</a>. | ||||
</p> | </p> | ||||
<p>Also feel free to contact {{ appName }} Support with any questions | <p>Also feel free to contact {{ $root.appName }} Support with any questions | ||||
or concerns that you may have in this context.</p> | or concerns that you may have in this context.</p> | ||||
<button class="btn btn-secondary button-cancel" @click="$router.go(-1)">Cancel</button> | <button class="btn btn-secondary button-cancel" @click="$router.go(-1)">Cancel</button> | ||||
<button class="btn btn-danger button-delete" @click="deleteProfile"> | <button class="btn btn-danger button-delete" @click="deleteProfile"> | ||||
<svg-icon icon="trash-alt"></svg-icon> Delete account | <svg-icon icon="trash-alt"></svg-icon> Delete account | ||||
</button> | </button> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
export default { | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
appName: window.config['app.name'], | |||||
supportEmail: window.config['app.support_email'] | supportEmail: window.config['app.support_email'] | ||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
if (!this.$root.isController(this.$store.state.authInfo.wallet.id)) { | if (!this.$root.isController(this.$store.state.authInfo.wallet.id)) { | ||||
this.$root.errorPage(403) | this.$root.errorPage(403) | ||||
} | } | ||||
}, | }, | ||||
Show All 16 Lines |