mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
updates to list indicator
This commit is contained in:
parent
490b25c3eb
commit
945916b29c
@ -1063,10 +1063,12 @@ var tower = angular.module('Tower', [
|
||||
var list = $location.$$path.split("/")[1];
|
||||
var id = $location.$$path.split("/")[2];
|
||||
|
||||
delete $rootScope.listBeingEdited
|
||||
delete $rootScope.rowBeingEdited
|
||||
delete $rootScope.listBeingEdited;
|
||||
delete $rootScope.rowBeingEdited;
|
||||
|
||||
$rootScope.$broadcast("EditIndicatorChange", list, id);
|
||||
} else {
|
||||
$rootScope.$broadcast("RemoveIndicator");
|
||||
}
|
||||
|
||||
// this line removes the query params attached to a route
|
||||
|
||||
@ -175,7 +175,11 @@ export default ['$location', '$compile', '$rootScope', 'SearchWidget', 'Paginate
|
||||
this.scope.$on("EditIndicatorChange", function(e, list, id) {
|
||||
e.targetScope.listBeingEdited = list;
|
||||
e.targetScope.rowBeingEdited = id;
|
||||
console.log(list, id);
|
||||
});
|
||||
|
||||
this.scope.$on("RemoveIndicator", function(e) {
|
||||
delete e.targetScope.listBeingEdited;
|
||||
delete e.targetScope.rowBeingEdited;
|
||||
});
|
||||
|
||||
this.scope.isHiddenByOptions = function(options) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user