mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
updates to list indicator
This commit is contained in:
@@ -1063,10 +1063,12 @@ var tower = angular.module('Tower', [
|
|||||||
var list = $location.$$path.split("/")[1];
|
var list = $location.$$path.split("/")[1];
|
||||||
var id = $location.$$path.split("/")[2];
|
var id = $location.$$path.split("/")[2];
|
||||||
|
|
||||||
delete $rootScope.listBeingEdited
|
delete $rootScope.listBeingEdited;
|
||||||
delete $rootScope.rowBeingEdited
|
delete $rootScope.rowBeingEdited;
|
||||||
|
|
||||||
$rootScope.$broadcast("EditIndicatorChange", list, id);
|
$rootScope.$broadcast("EditIndicatorChange", list, id);
|
||||||
|
} else {
|
||||||
|
$rootScope.$broadcast("RemoveIndicator");
|
||||||
}
|
}
|
||||||
|
|
||||||
// this line removes the query params attached to a route
|
// 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) {
|
this.scope.$on("EditIndicatorChange", function(e, list, id) {
|
||||||
e.targetScope.listBeingEdited = list;
|
e.targetScope.listBeingEdited = list;
|
||||||
e.targetScope.rowBeingEdited = id;
|
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) {
|
this.scope.isHiddenByOptions = function(options) {
|
||||||
|
|||||||
Reference in New Issue
Block a user