Przeglądaj źródła

Fix in unsaved changes service

Torkel Ödegaard 10 lat temu
rodzic
commit
2c3aad785d

+ 1 - 1
public/app/features/dashboard/unsavedChangesSrv.js

@@ -51,7 +51,7 @@ function(angular, _) {
     // for some dashboards and users
     // changes should be ignored
     p.ignoreChanges = function() {
-      if (!this.original) { return false; }
+      if (!this.original) { return true; }
       if (!contextSrv.isEditor) { return true; }
       if (!this.current || !this.current.meta) { return true; }