Skip to content

Commit

Permalink
Change titleChanged function name
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Nov 21, 2016
1 parent 08b0e92 commit b7b6e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/public/courier/saved_object/saved_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default function SavedObjectFactory(es, kbnIndex, Promise, Private, Notif
* Returns true if the object's original title has been changed. New objects return false.
* @return {boolean}
*/
self.titleChanged = function () {
self.isTitleChanged = function () {
return self._source && self._source.title !== self.title;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ uiModules
restrict: 'E',
template: `
<div class="form-group" ng-hide="!savedObject.id">
<div ng-hide="!savedObject.titleChanged() || savedObject.copyOnSave" class="localDropdownWarning">
<div ng-hide="!savedObject.isTitleChanged() || savedObject.copyOnSave" class="localDropdownWarning">
Note, saving a {{savedObject.getDisplayName()}} with a new name will no longer automatically create a copy.
</div>
<label>
Expand Down

0 comments on commit b7b6e0a

Please sign in to comment.