Files
old-wiaas-legacy/api-wiaas/client/js/components/orders/support-mail.directive.js
2018-06-11 11:09:35 +02:00

22 lines
733 B
JavaScript

(function () {
global.dashModule
.directive('supportMail', ['utilsService', 'ordersUtilsService', supportMailDirective]);
function supportMailDirective(utilsService, ordersUtilsService) {
return {
restrict: 'A',
templateUrl: 'orders/html/supportMailTemplate',
scope: {
ordersDetails: '<',
packages: '<',
supportMailText: '='
},
link: function (scope) {
scope.calculatePrice = ordersUtilsService.calculatePrice;
scope.getStatusIcon = utilsService.getStatusIcon;
scope.hasAgreement = ordersUtilsService.hasAgreement;
}
};
}
})();