24 lines
568 B
JavaScript
24 lines
568 B
JavaScript
import ngModule from '../../module';
|
|
import Dialog from '../dialog';
|
|
|
|
export default class Controller extends Dialog {
|
|
constructor($element, $, $transclude) {
|
|
super($element, $, $transclude);
|
|
}
|
|
|
|
responseHandler(response) {
|
|
if (response !== 'accept')
|
|
return super.responseHandler(response);
|
|
}
|
|
}
|
|
|
|
Controller.$inject = ['$element', '$scope', '$transclude'];
|
|
|
|
ngModule.vnComponent('vnSupportDialog', {
|
|
slotTemplate: require('./index.html'),
|
|
controller: Controller,
|
|
bindings: {
|
|
additionalData: '<?'
|
|
}
|
|
});
|