22 lines
522 B
JavaScript
22 lines
522 B
JavaScript
import ngModule from '../module';
|
|
import ModuleCard from 'salix/components/module-card';
|
|
|
|
class Controller extends ModuleCard {
|
|
reload() {
|
|
let filter = {
|
|
include: {
|
|
relation: 'agencyMode',
|
|
scope: {fields: ['name']}
|
|
}
|
|
};
|
|
|
|
this.$http.get(`Zones/${this.$params.id}`, {filter})
|
|
.then(res => this.zone = res.data);
|
|
}
|
|
}
|
|
|
|
ngModule.vnComponent('vnZoneCard', {
|
|
template: require('./index.html'),
|
|
controller: Controller
|
|
});
|