Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Domain/Info.vue
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | export default { | ||||
}, | }, | ||||
methods: { | methods: { | ||||
confirm() { | confirm() { | ||||
axios.get('/api/v4/domains/' + this.domain_id + '/confirm') | axios.get('/api/v4/domains/' + this.domain_id + '/confirm') | ||||
.then(response => { | .then(response => { | ||||
if (response.data.status == 'success') { | if (response.data.status == 'success') { | ||||
this.domain.isConfirmed = true | this.domain.isConfirmed = true | ||||
this.parseStatusInfo(response.data.statusInfo) | this.parseStatusInfo(response.data.statusInfo) | ||||
this.$toastr('success', response.data.message) | this.$toast.success(response.data.message) | ||||
} | } | ||||
}) | }) | ||||
}, | }, | ||||
// Displays domain status information | // Displays domain status information | ||||
parseStatusInfo(info) { | parseStatusInfo(info) { | ||||
this.statusProcess = info.process | this.statusProcess = info.process | ||||
this.isReady = info.isReady | this.isReady = info.isReady | ||||
Show All 19 Lines |