Skip to content

Commit

Permalink
Merge pull request #2051 from spadgett/prompt-unsaved-edit-yaml
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Sep 12, 2017
2 parents 5647d19 + 1b58ab2 commit acdc2ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/edit/yaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ angular.module('openshiftConsole')
$window.history.back();
};

$scope.$watch('resource', function(current, previous) {
$scope.$watch('updated.resource', function(current, previous) {
if (current !== previous) {
$scope.modified = true;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7418,7 +7418,7 @@ title: "Edit YAML"
var p = function() {
e.modified = !1, a.returnURL ? n.url(a.returnURL) : r.history.back();
};
e.$watch("resource", function(t, n) {
e.$watch("updated.resource", function(t, n) {
t !== n && (e.modified = !0);
});
var f = [];
Expand Down

0 comments on commit acdc2ba

Please sign in to comment.