aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Roberson <chrisronline@gmail.com>2018-06-01 08:58:43 -0400
committerGitHub <noreply@github.com>2018-06-01 08:58:43 -0400
commit9ce082b1f4034ebf00fc05c1ef05f99639db3d0d (patch)
tree27c8297ebc1ba939a4ed5d9bf8030314010d230a
parenta801752e790b2611cd9a10ebd014d3950c21b3bd (diff)
Disable the dirty prompt until #19594 is resolved (#19595)
-rw-r--r--x-pack/plugins/watcher/public/sections/watch_edit/components/json_watch_edit/json_watch_edit.js10
-rw-r--r--x-pack/plugins/watcher/public/sections/watch_edit/components/threshold_watch_edit/threshold_watch_edit.js8
2 files changed, 9 insertions, 9 deletions
diff --git a/x-pack/plugins/watcher/public/sections/watch_edit/components/json_watch_edit/json_watch_edit.js b/x-pack/plugins/watcher/public/sections/watch_edit/components/json_watch_edit/json_watch_edit.js
index fa1d3fb4f..e1b0f91be 100644
--- a/x-pack/plugins/watcher/public/sections/watch_edit/components/json_watch_edit/json_watch_edit.js
+++ b/x-pack/plugins/watcher/public/sections/watch_edit/components/json_watch_edit/json_watch_edit.js
@@ -26,7 +26,7 @@ app.directive('jsonWatchEdit', function ($injector) {
const licenseService = $injector.get('xpackWatcherLicenseService');
const kbnUrl = $injector.get('kbnUrl');
const confirmModal = $injector.get('confirmModal');
- const dirtyPrompt = $injector.get('dirtyPrompt');
+ // const dirtyPrompt = $injector.get('dirtyPrompt');
return {
restrict: 'E',
@@ -37,7 +37,7 @@ app.directive('jsonWatchEdit', function ($injector) {
bindToController: true,
controllerAs: 'jsonWatchEdit',
controller: class JsonWatchEditController extends InitAfterBindingsWorkaround {
- initAfterBindings($scope) {
+ initAfterBindings() {
this.notifier = new Notifier({ location: 'Watcher' });
this.selectedTabId = 'edit-watch';
this.simulateResults = null;
@@ -51,8 +51,8 @@ app.directive('jsonWatchEdit', function ($injector) {
];
this.breadcrumb = this.watch.displayName;
- dirtyPrompt.register(() => !this.watch.isEqualTo(this.originalWatch));
- $scope.$on('$destroy', dirtyPrompt.deregister);
+ // dirtyPrompt.register(() => !this.watch.isEqualTo(this.originalWatch));
+ // $scope.$on('$destroy', dirtyPrompt.deregister);
this.onExecuteDetailsValid();
}
@@ -174,7 +174,7 @@ app.directive('jsonWatchEdit', function ($injector) {
}
onClose = () => {
- dirtyPrompt.deregister();
+ // dirtyPrompt.deregister();
kbnUrl.change('/management/elasticsearch/watcher/watches', {});
}
}
diff --git a/x-pack/plugins/watcher/public/sections/watch_edit/components/threshold_watch_edit/threshold_watch_edit.js b/x-pack/plugins/watcher/public/sections/watch_edit/components/threshold_watch_edit/threshold_watch_edit.js
index 0f1cf5b19..f765ecdfd 100644
--- a/x-pack/plugins/watcher/public/sections/watch_edit/components/threshold_watch_edit/threshold_watch_edit.js
+++ b/x-pack/plugins/watcher/public/sections/watch_edit/components/threshold_watch_edit/threshold_watch_edit.js
@@ -39,7 +39,7 @@ app.directive('thresholdWatchEdit', function ($injector) {
const actionDefaultsService = $injector.get('xpackWatcherActionDefaultsService');
const kbnUrl = $injector.get('kbnUrl');
const confirmModal = $injector.get('confirmModal');
- const dirtyPrompt = $injector.get('dirtyPrompt');
+ // const dirtyPrompt = $injector.get('dirtyPrompt');
const $interval = $injector.get('$interval');
return {
@@ -64,9 +64,9 @@ app.directive('thresholdWatchEdit', function ($injector) {
];
this.breadcrumb = this.watch.displayName;
- dirtyPrompt.register(() => !this.watch.isEqualTo(this.originalWatch));
+ // dirtyPrompt.register(() => !this.watch.isEqualTo(this.originalWatch));
$scope.$on('$destroy', () => {
- dirtyPrompt.deregister();
+ // dirtyPrompt.deregister();
this.stopRefreshWatchVisualizationTimer();
});
@@ -152,7 +152,7 @@ app.directive('thresholdWatchEdit', function ($injector) {
}
onClose = () => {
- dirtyPrompt.deregister();
+ // dirtyPrompt.deregister();
kbnUrl.change('/management/elasticsearch/watcher/watches', {});
}