2017-06-03 11:01:47 +00:00
|
|
|
import ngModule from '../module';
|
2017-01-31 13:13:06 +00:00
|
|
|
|
2018-03-01 11:51:35 +00:00
|
|
|
class Controller {
|
2018-03-01 20:18:43 +00:00
|
|
|
onClick(event) {
|
|
|
|
if (event.defaultPrevented)
|
|
|
|
event.stopImmediatePropagation();
|
|
|
|
}
|
|
|
|
|
|
|
|
preview(event) {
|
|
|
|
event.preventDefault();
|
2018-03-01 11:51:35 +00:00
|
|
|
this.list.openSummary(this.client);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-03 11:01:47 +00:00
|
|
|
ngModule.component('vnItemClient', {
|
2017-02-21 10:36:43 +00:00
|
|
|
template: require('./item-client.html'),
|
2018-03-01 11:51:35 +00:00
|
|
|
controller: Controller,
|
2017-01-31 13:13:06 +00:00
|
|
|
bindings: {
|
|
|
|
client: '<'
|
2018-03-01 11:51:35 +00:00
|
|
|
},
|
|
|
|
require: {
|
|
|
|
list: '^vnClientIndex'
|
2017-01-31 13:13:06 +00:00
|
|
|
}
|
2017-06-03 11:01:47 +00:00
|
|
|
});
|