Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Domain/Info.vue
Show All 17 Lines | <div class="container"> | ||||
<button class="btn btn-primary" type="button" @click="confirm"><svg-icon icon="sync-alt"></svg-icon> Verify</button> | <button class="btn btn-primary" type="button" @click="confirm"><svg-icon icon="sync-alt"></svg-icon> Verify</button> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div v-if="domain && domain.isConfirmed" class="card" id="domain-config"> | <div v-if="domain && domain.isConfirmed" class="card" id="domain-config"> | ||||
<div class="card-body"> | <div class="card-body"> | ||||
<div class="card-title">Domain configuration</div> | <div class="card-title">Domain configuration</div> | ||||
<div class="card-text"> | <div class="card-text"> | ||||
<p>In order to let {{ app_name }} receive email traffic for your domain you need to adjust | <p>In order to let {{ $root.appName }} receive email traffic for your domain you need to adjust | ||||
the DNS settings, more precisely the MX entries, accordingly.</p> | the DNS settings, more precisely the MX entries, accordingly.</p> | ||||
<p>Edit your domain's zone file and replace existing MX | <p>Edit your domain's zone file and replace existing MX | ||||
entries with the following values: <pre>{{ domain.config.join("\n") }}</pre></p> | entries with the following values: <pre>{{ domain.config.join("\n") }}</pre></p> | ||||
<p>If you don't know how to set DNS entries for your domain, | <p>If you don't know how to set DNS entries for your domain, | ||||
please contact the registration service where you registered | please contact the registration service where you registered | ||||
the domain or your web hosting provider.</p> | the domain or your web hosting provider.</p> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
import StatusComponent from '../Widgets/Status' | import StatusComponent from '../Widgets/Status' | ||||
export default { | export default { | ||||
components: { | components: { | ||||
StatusComponent | StatusComponent | ||||
}, | }, | ||||
data() { | data() { | ||||
return { | return { | ||||
domain_id: null, | domain_id: null, | ||||
domain: null, | domain: null, | ||||
app_name: window.config['app.name'], | |||||
status: {} | status: {} | ||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
if (this.domain_id = this.$route.params.domain) { | if (this.domain_id = this.$route.params.domain) { | ||||
this.$root.startLoading() | this.$root.startLoading() | ||||
axios.get('/api/v4/domains/' + this.domain_id) | axios.get('/api/v4/domains/' + this.domain_id) | ||||
Show All 35 Lines |