Merge pull request #2625 from charltonaustin/fix_robot_display_error

fix(frontend): fixed changing location
This commit is contained in:
Charlton Austin 2017-05-05 15:27:45 -04:00 committed by GitHub
commit 339aeb59f1
4 changed files with 12 additions and 10 deletions

View file

@ -38,7 +38,8 @@ angular.module('quay').directive('signupForm', function () {
$scope.userRegistered({'username': $scope.newUser.username});
if (!$scope.awaitingConfirmation && !$scope.inviteCode) {
document.location = '/';
$location.path("/");
}
UserService.load();

View file

@ -12,7 +12,7 @@ angular.module('quay').directive('teamsManager', function () {
'organization': '=organization',
'isEnabled': '=isEnabled'
},
controller: function($scope, $element, ApiService, $timeout, UserService, TableService, UIService, Config, Features) {
controller: function($scope, $element, ApiService, $timeout, UserService, TableService, UIService, Config, Features, $location) {
$scope.TableService = TableService;
$scope.Config = Config;
$scope.Features = Features;
@ -151,7 +151,7 @@ angular.module('quay').directive('teamsManager', function () {
};
$scope.viewTeam = function(teamName) {
document.location = '/organization/' + $scope.organization.name + '/teams/' + teamName;
$location.path('/organization/' + $scope.organization.name + '/teams/' + teamName);
};
$scope.showMembers = function(value) {