mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
deregister the transition hook when destroy smart-search controller
This commit is contained in:
@@ -152,8 +152,11 @@ function SmartSearchController (
|
|||||||
$scope.$emit(optionsKey, data.options);
|
$scope.$emit(optionsKey, data.options);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$scope.$on('$destroy', () => {
|
||||||
$scope.$on('$destroy', transitionSuccessListener);
|
if (transitionSuccessListener) {
|
||||||
|
transitionSuccessListener();
|
||||||
|
}
|
||||||
|
});
|
||||||
$scope.$watch('disableSearch', disableSearch => {
|
$scope.$watch('disableSearch', disableSearch => {
|
||||||
if (disableSearch) {
|
if (disableSearch) {
|
||||||
$scope.searchPlaceholder = i18n._('Cannot search running job');
|
$scope.searchPlaceholder = i18n._('Cannot search running job');
|
||||||
|
|||||||
Reference in New Issue
Block a user