Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Domain/Info.vue
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | export default { | ||||
domain_id: null, | domain_id: null, | ||||
domain: null, | domain: null, | ||||
app_name: window.config['app.name'], | 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() | |||||
axios.get('/api/v4/domains/' + this.domain_id) | axios.get('/api/v4/domains/' + this.domain_id) | ||||
.then(response => { | .then(response => { | ||||
this.$root.stopLoading() | |||||
this.domain = response.data | this.domain = response.data | ||||
if (!this.domain.isConfirmed) { | if (!this.domain.isConfirmed) { | ||||
$('#domain-verify button').focus() | $('#domain-verify button').focus() | ||||
} | } | ||||
this.status = response.data.statusInfo | this.status = response.data.statusInfo | ||||
}) | }) | ||||
.catch(this.$root.errorHandler) | .catch(this.$root.errorHandler) | ||||
} else { | } else { | ||||
this.$root.errorPage(404) | this.$root.errorPage(404) | ||||
} | } | ||||
}, | }, | ||||
methods: { | methods: { | ||||
Show All 19 Lines |