- $scope.selectedBluePrintLayerChange = function() {
- $scope.declerativeTimeslots = [];
- angular
- .forEach(
- $scope.blueprintInstances,
- function(blueprintInstance) {
- if ($scope.selectedBlueprintName === blueprintInstance["blueprint"]["blueprintName"]) {
- if ($scope.selectedBlueprintVersion === blueprintInstance["version"]) {
- if ($scope.selectedBlueprintLayer === blueprintInstance["layer"]) {
- var temp = "id: "
- + blueprintInstance["timeslot"].timeslotId
- + " Start date and time: "
- + blueprintInstance["timeslot"].startDateTime
- + " duration(in sec) :"
- + blueprintInstance["timeslot"].duration
- + " lab :"
- + blueprintInstance["timeslot"].lab;
- if ($scope.declerativeTimeslots
- .indexOf(temp) === -1) {
- $scope.declerativeTimeslots
- .push(temp);
- }
- }
- }
- }
- });
- }