SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/change/change-impacted-areas.js

26 lines
723 B
JavaScript

"use strict";
/**
* Created by andey on 09-09-2017.
*/
(function () {
'use strict';
angular.module('changeModule')
.directive('changeImpactedAreas', [
function () {
return {
restrict: 'E',
replace: true,
templateUrl: 'views/change/change-impacted-areas.html',
scope: {
basicData: '=',
parentEditMode: '=',
isFullVersion: '='
},
link: function (scope) {
scope.isEditModeAllowed = scope.isFullVersion && scope.basicData.accessMappings.impactEditAllowed;
}
};
}
]);
})();