Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Resource/Info.vue
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | export default { | ||||
this.resource.config.invitation_policy = 'manual' | this.resource.config.invitation_policy = 'manual' | ||||
} | } | ||||
this.$nextTick().then(() => { this.policyChange() }) | this.$nextTick().then(() => { this.policyChange() }) | ||||
}) | }) | ||||
.catch(this.$root.errorHandler) | .catch(this.$root.errorHandler) | ||||
} else { | } else { | ||||
axios.get('/api/v4/domains', { loader: true }) | axios.get('/api/v4/domains', { loader: true }) | ||||
.then(response => { | .then(response => { | ||||
this.domains = response.data | this.domains = response.data.list | ||||
this.resource.domain = this.domains[0].namespace | this.resource.domain = this.domains[0].namespace | ||||
}) | }) | ||||
.catch(this.$root.errorHandler) | .catch(this.$root.errorHandler) | ||||
} | } | ||||
}, | }, | ||||
mounted() { | mounted() { | ||||
$('#name').focus() | $('#name').focus() | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |