mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
Set the url before attempting to update the team
This commit is contained in:
@@ -217,6 +217,7 @@ export function TeamsEdit($scope, $rootScope, $stateParams,
|
|||||||
$rootScope.flashMessage = null;
|
$rootScope.flashMessage = null;
|
||||||
if ($scope[form.name + '_form'].$valid) {
|
if ($scope[form.name + '_form'].$valid) {
|
||||||
var data = processNewData(form.fields);
|
var data = processNewData(form.fields);
|
||||||
|
Rest.setUrl(defaultUrl);
|
||||||
Rest.put(data).success(function() {
|
Rest.put(data).success(function() {
|
||||||
$state.go($state.current, null, { reload: true });
|
$state.go($state.current, null, { reload: true });
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user