mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
fix refresh and refreshJobs functions
This commit is contained in:
@@ -287,6 +287,14 @@ var tower = angular.module('Tower', [
|
|||||||
$log.debug(`$state.defaultErrorHandler: ${error}`);
|
$log.debug(`$state.defaultErrorHandler: ${error}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$rootScope.refresh = function() {
|
||||||
|
$state.go('.', null, {reload: true});
|
||||||
|
};
|
||||||
|
|
||||||
|
$rootScope.refreshJobs = function(){
|
||||||
|
$state.go('.', null, {reload: true});
|
||||||
|
};
|
||||||
|
|
||||||
function activateTab() {
|
function activateTab() {
|
||||||
// Make the correct tab active
|
// Make the correct tab active
|
||||||
var base = $location.path().replace(/^\//, '').split('/')[0];
|
var base = $location.path().replace(/^\//, '').split('/')[0];
|
||||||
|
|||||||
@@ -265,12 +265,6 @@ export default
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
parent_scope.refreshJobs = function(){
|
|
||||||
// TODO: what should I do here?
|
|
||||||
// @issue: OLD SEARCH
|
|
||||||
// scope.search(SchedulesList.iterator);
|
|
||||||
};
|
|
||||||
|
|
||||||
var cleanUpStateChangeListener = $rootScope.$on('$stateChangeSuccess', function(event, toState, toParams) {
|
var cleanUpStateChangeListener = $rootScope.$on('$stateChangeSuccess', function(event, toState, toParams) {
|
||||||
if(toState.name === "managementJobsList") {
|
if(toState.name === "managementJobsList") {
|
||||||
// We are on the management job list view - nothing needs to be highlighted
|
// We are on the management job list view - nothing needs to be highlighted
|
||||||
|
|||||||
@@ -284,12 +284,6 @@ export default ['$scope', '$rootScope', '$location', '$log',
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.refresh = function() {
|
|
||||||
// TODO: what should I do here?
|
|
||||||
// @issue: OLD SEARCH
|
|
||||||
// $scope.search(list.iterator);
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.SCMUpdate = function(project_id, event) {
|
$scope.SCMUpdate = function(project_id, event) {
|
||||||
try {
|
try {
|
||||||
$(event.target).tooltip('hide');
|
$(event.target).tooltip('hide');
|
||||||
|
|||||||
Reference in New Issue
Block a user