Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2017-04-14 21:54:23 +0000
committerAngel Avila2017-04-15 00:19:48 +0000
commita2fee6dcf131b64c3618d1f42d99a3b457a48b33 (patch)
treee821dee9fd2fa458db525d0b656958bfea859f36 /plugins/org.eclipse.osee.web.ui
parente2a23e6e707508b441f20f974dafeca92b00f2f6 (diff)
downloadorg.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
Diffstat (limited to 'plugins/org.eclipse.osee.web.ui')
-rw-r--r--plugins/org.eclipse.osee.web.ui/src/dispo/js/adminController.js46
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 8b73424029..695c9e79be 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({

Back to the top