KEYCLOAK-94: Move location change to happen only after Realm.query happens, so it has the data already in place when trying to load it.

This commit is contained in:
ammendonca 2013-10-11 02:54:20 +01:00
parent 1f78aa90d5
commit c2f6d168a2

View file

@ -103,10 +103,10 @@ module.controller('RealmDetailCtrl', function($scope, Current, Realm, realm, $ht
Current.realm = Current.realms[i];
}
}
});
$location.url("/realms/" + id);
Notifications.success("Created realm");
});
});
} else {
console.log('updating realm...');
$scope.changed = false;