SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/common/display-ticket-dates.js

26 lines
721 B
JavaScript

"use strict";
/**
* Created by igor.samulenko on 7/22/2014.
*/
(function () {
'use strict';
angular.module('myitsmApp')
.directive('displayTicketDates', function () {
return {
restrict: 'E',
templateUrl: 'views/ticket/partials/display-ticket-dates.html',
scope: {
ticket: '='
},
link: function (scope) {
scope.isChange = function () {
return scope.ticket.type === EntityVO.TYPE_CHANGE;
};
scope.isRelease = function () {
return scope.ticket.type === EntityVO.TYPE_RELEASE;
};
}
};
});
}());