|
|
|
@ -188,8 +188,10 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
|
|
|
|
|
|
// Note: I know we don't want watchers on the controller but I want all the toolbar directives to have restricted scopes. Thoughts welcome.
|
|
|
|
|
$scope.$watch('query.name', function(newValue, oldValue){ |
|
|
|
|
if(newValue != oldValue && $scope.query.hasName()){ |
|
|
|
|
if(newValue !== oldValue && $scope.query.hasName()){ |
|
|
|
|
$scope.selectedTitle = newValue; |
|
|
|
|
} else { |
|
|
|
|
$scope.selectedTitle = I18n.t('js.toolbar.unselected_title'); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|