From 659b52c82a26b9496a3dba81401b5147d05248ae Mon Sep 17 00:00:00 2001 From: ublefo <90136978+ublefo@users.noreply.github.com> Date: Tue, 14 May 2024 12:54:18 +1000 Subject: [PATCH] fix: add missing imports --- src/app/projects/states/outcomes/outcomes.coffee | 2 +- src/app/projects/states/portfolio/portfolio.coffee | 2 +- .../task-ilo-alignment-modal/task-ilo-alignment-modal.coffee | 2 +- .../units/modals/unit-ilo-edit-modal/unit-ilo-edit-modal.coffee | 2 +- .../unit-student-enrolment-modal.coffee | 2 +- src/app/units/states/portfolios/portfolios.coffee | 2 +- src/app/units/states/rollover/rollover.coffee | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/projects/states/outcomes/outcomes.coffee b/src/app/projects/states/outcomes/outcomes.coffee index 24a21282e..431d1b9a6 100644 --- a/src/app/projects/states/outcomes/outcomes.coffee +++ b/src/app/projects/states/outcomes/outcomes.coffee @@ -16,7 +16,7 @@ angular.module('doubtfire.projects.states.outcomes', []) } ) -.controller("LearningOutcomesStateCtrl", ($scope, $rootScope, $timeout, outcomeService, newUnitService, Visualisation) -> +.controller("LearningOutcomesStateCtrl", ($scope, $rootScope, $timeout, alertService, outcomeService, newUnitService, Visualisation) -> $scope.poaView = { activeTab: 'list' } diff --git a/src/app/projects/states/portfolio/portfolio.coffee b/src/app/projects/states/portfolio/portfolio.coffee index 90d5fb391..7f0270519 100644 --- a/src/app/projects/states/portfolio/portfolio.coffee +++ b/src/app/projects/states/portfolio/portfolio.coffee @@ -18,7 +18,7 @@ angular.module('doubtfire.projects.states.portfolio', [ } ) -.controller("ProjectsPortfolioStateCtrl", ($scope, DoubtfireConstants, newTaskService, gradeService, analyticsService) -> +.controller("ProjectsPortfolioStateCtrl", ($scope, alertService, DoubtfireConstants, newTaskService, gradeService, analyticsService) -> # # Active task tab group # diff --git a/src/app/tasks/task-ilo-alignment/modals/task-ilo-alignment-modal/task-ilo-alignment-modal.coffee b/src/app/tasks/task-ilo-alignment/modals/task-ilo-alignment-modal/task-ilo-alignment-modal.coffee index 79d53eb6b..51633d4fb 100644 --- a/src/app/tasks/task-ilo-alignment/modals/task-ilo-alignment-modal/task-ilo-alignment-modal.coffee +++ b/src/app/tasks/task-ilo-alignment/modals/task-ilo-alignment-modal/task-ilo-alignment-modal.coffee @@ -21,7 +21,7 @@ angular.module('doubtfire.tasks.task-ilo-alignment.modals.task-ilo-alignment-mod TaskILOAlignmentModal ) -.controller('TaskILOAlignmentModalCtrl', ($scope, $rootScope, $modalInstance, newTaskOutcomeAlignmentService, task, ilo, alignment, unit, project, source) -> +.controller('TaskILOAlignmentModalCtrl', ($scope, $rootScope, $modalInstance, alertService, newTaskOutcomeAlignmentService, task, ilo, alignment, unit, project, source) -> $scope.source = source $scope.unit = unit $scope.task = task diff --git a/src/app/units/modals/unit-ilo-edit-modal/unit-ilo-edit-modal.coffee b/src/app/units/modals/unit-ilo-edit-modal/unit-ilo-edit-modal.coffee index 1516fef8b..084f2cc69 100644 --- a/src/app/units/modals/unit-ilo-edit-modal/unit-ilo-edit-modal.coffee +++ b/src/app/units/modals/unit-ilo-edit-modal/unit-ilo-edit-modal.coffee @@ -20,7 +20,7 @@ angular.module('doubtfire.units.modals.unit-ilo-edit-modal', []) UnitILOEditModalCtrl ) -.controller('UnitILOEditModalCtrl', ($scope, $modalInstance, ilo, unit, newLearningOutcomeService) -> +.controller('UnitILOEditModalCtrl', ($scope, $modalInstance, alertService, ilo, unit, newLearningOutcomeService) -> prototypeIlo = { name: null, description: null, abbreviation: null } $scope.ilo = ilo or prototypeIlo $scope.isNew = !ilo? diff --git a/src/app/units/modals/unit-student-enrolment-modal/unit-student-enrolment-modal.coffee b/src/app/units/modals/unit-student-enrolment-modal/unit-student-enrolment-modal.coffee index 9f684c7c7..162889b6a 100644 --- a/src/app/units/modals/unit-student-enrolment-modal/unit-student-enrolment-modal.coffee +++ b/src/app/units/modals/unit-student-enrolment-modal/unit-student-enrolment-modal.coffee @@ -16,7 +16,7 @@ angular.module('doubtfire.units.modals.unit-student-enrolment-modal', []) UnitStudentEnrolmentModal ) -.controller('UnitStudentEnrolmentModalCtrl', ($scope, $modalInstance, unit, campusService, newProjectService) -> +.controller('UnitStudentEnrolmentModalCtrl', ($scope, $modalInstance, alertService, newUserService, unit, campusService, newProjectService) -> $scope.unit = unit $scope.projects = unit.students $scope.campuses = [] diff --git a/src/app/units/states/portfolios/portfolios.coffee b/src/app/units/states/portfolios/portfolios.coffee index 3003eb187..7e745b33d 100644 --- a/src/app/units/states/portfolios/portfolios.coffee +++ b/src/app/units/states/portfolios/portfolios.coffee @@ -14,7 +14,7 @@ angular.module('doubtfire.units.states.portfolios', []) roleWhitelist: ['Tutor', 'Convenor', 'Admin'] } ) -.controller("UnitPortfoliosStateCtrl", ($scope, analyticsService, gradeService, newProjectService, Visualisation, newTaskService, fileDownloaderService, newUserService) -> +.controller("UnitPortfoliosStateCtrl", ($scope, alertService, analyticsService, gradeService, newProjectService, Visualisation, newTaskService, fileDownloaderService, newUserService) -> # TODO: (@alexcu) Break this down into smaller directives/substates $scope.downloadGrades = -> fileDownloaderService.downloadFile($scope.unit.gradesUrl, "#{$scope.unit.code}-grades.csv") diff --git a/src/app/units/states/rollover/rollover.coffee b/src/app/units/states/rollover/rollover.coffee index 97b958fd9..0bbeff115 100644 --- a/src/app/units/states/rollover/rollover.coffee +++ b/src/app/units/states/rollover/rollover.coffee @@ -14,7 +14,7 @@ angular.module('doubtfire.units.states.rollover', [ roleWhitelist: ['Convenor', 'Admin'] } ) -.controller("RolloverUnitState", ($scope, $state, $stateParams, newUnitService, GlobalStateService) -> +.controller("RolloverUnitState", ($scope, $state, $stateParams, newUserService, alertService, newUnitService, GlobalStateService) -> unitId = +$stateParams.unitId return $state.go('home') unless unitId