admin: Fix add to delegated QA manager
This commit is contained in:
parent
0f9d56fcbf
commit
1adb1807b5
2 changed files with 28 additions and 26 deletions
|
@ -564,6 +564,18 @@ angular.module("FICApp")
|
|||
})
|
||||
|
||||
.controller("AllTeamAssociationsController", function ($scope, $http) {
|
||||
$scope.newdqa = "";
|
||||
$scope.addDelegatedQA = function () {
|
||||
if ($scope.newdqa.length) {
|
||||
if (!$scope.config.delegated_qa)
|
||||
$scope.config.delegated_qa = [];
|
||||
|
||||
$scope.config.delegated_qa.push($scope.newdqa);
|
||||
$scope.saveSettings();
|
||||
$scope.newdqa = "";
|
||||
}
|
||||
}
|
||||
|
||||
$scope.allAssociations = [];
|
||||
$http.get("api/teams-associations.json").then(function (response) {
|
||||
$scope.allAssociations = response.data;
|
||||
|
@ -625,17 +637,6 @@ angular.module("FICApp")
|
|||
$scope.config.disablesubmitbutton = "";
|
||||
};
|
||||
|
||||
$scope.newdqa = "";
|
||||
$scope.addDelegatedQA = function () {
|
||||
if ($scope.newdqa.length) {
|
||||
if (!$scope.config.delegated_qa)
|
||||
$scope.config.delegated_qa = [];
|
||||
|
||||
$scope.config.delegated_qa.push($scope.newdqa);
|
||||
$scope.saveSettings();
|
||||
$scope.newdqa = "";
|
||||
}
|
||||
}
|
||||
$scope.dropDelegatedQA = function (member) {
|
||||
if (!$scope.config.delegated_qa) {
|
||||
$scope.config.delegated_qa = [];
|
||||
|
|
Reference in a new issue