Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Distlist/Info.vue
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | export default { | ||||
data() { | data() { | ||||
return { | return { | ||||
list_id: null, | list_id: null, | ||||
list: { members: [] }, | list: { members: [] }, | ||||
status: {} | status: {} | ||||
} | } | ||||
}, | }, | ||||
created() { | created() { | ||||
if (!this.$root.hasPermission('distlists')) { | |||||
this.$root.errorPage(404) | |||||
return | |||||
} | |||||
this.list_id = this.$route.params.list | this.list_id = this.$route.params.list | ||||
if (this.list_id != 'new') { | if (this.list_id != 'new') { | ||||
this.$root.startLoading() | this.$root.startLoading() | ||||
axios.get('/api/v4/groups/' + this.list_id) | axios.get('/api/v4/groups/' + this.list_id) | ||||
.then(response => { | .then(response => { | ||||
this.$root.stopLoading() | this.$root.stopLoading() | ||||
Show All 39 Lines |