diff options
author | Angel Avila | 2017-04-14 21:54:23 +0000 |
---|---|---|
committer | Angel Avila | 2017-04-15 00:19:48 +0000 |
commit | a2fee6dcf131b64c3618d1f42d99a3b457a48b33 (patch) | |
tree | e821dee9fd2fa458db525d0b656958bfea859f36 /plugins/org.eclipse.osee.web.ui | |
parent | e2a23e6e707508b441f20f974dafeca92b00f2f6 (diff) | |
download | org.eclipse.osee-a2fee6dcf131b64c3618d1f42d99a3b457a48b33.tar.gz org.eclipse.osee-a2fee6dcf131b64c3618d1f42d99a3b457a48b33.tar.xz org.eclipse.osee-a2fee6dcf131b64c3618d1f42d99a3b457a48b33.zip |
feature: Allow Dispo Admins to assign multiple items to a team
Change-Id: I1114f0e37982018da972df9ed661395d222cc3b4
Diffstat (limited to 'plugins/org.eclipse.osee.web.ui')
-rw-r--r-- | plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js b/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js index 8b734240295..695c9e79be1 100644 --- a/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js +++ b/plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js @@ -1,5 +1,5 @@ - app.controller('adminController', ['$scope', '$rootScope', '$modal', 'Program', 'Set', 'Report', 'CopySet', 'CopySetCoverage', - function($scope, $rootScope, $modal, Program, Set, Report, CopySet, CopySetCoverage) { + app.controller('adminController', ['$scope', '$rootScope', '$modal', 'Program', 'Set', 'Report', 'CopySet', 'CopySetCoverage', 'MultItemEdit', + function($scope, $rootScope, $modal, Program, Set, Report, CopySet, CopySetCoverage, MultItemEdit) { $scope.readOnly = true; $scope.programSelection = null; $scope.modalShown = false; @@ -403,6 +403,48 @@ }; }; + // Edit Set Modal + $scope.editSetModal = function() { + var modalInstance = $modal.open({ + templateUrl: 'editSet.html', + controller: EditSetModalCtrl, + size: 'lg', + windowClass: 'createSetModal' + }); + + modalInstance.result.then(function(inputs) { + if(inputs.isSetEdit) { + var newSet = {}; + newSet.name = inputs.name; + newSet.path = + $scope.editSet(newSet); + } + if(inputs.isMultItemEdit) { + $scope.editMultiItems(inputs.nameList, inputs.team); + } + }); + } + + var CreateSetModalCtrl = function($scope, $modalInstance, setName, setPath) { + $scope.setName = setName; + $scope.importPath = setPath; + $scope.nameListAsString = ""; + + $scope.ok = function() { + var inputs = {}; + inputs.name = this.setName; + inputs.path = this.importPath; + inputs.nameList = nameListAsString.split(","); + + $modalInstance.close(inputs); + }; + + $scope.cancel = function() { + $modalInstance.dismiss('cancel'); + }; + }; + + // Copy Set Modal $scope.openCopySetModal = function() { var modalInstance = $modal.open({ |