From 74ade640e32567e64c9ccf9669d26332cbf76e6c Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 21 Feb 2020 14:00:33 +0000 Subject: [PATCH] ui: Use WithEventSource mixin on intentions to ensure cleanup (#7333) The WithEventSource mixin has a reset method when the Controller is exited which will close any open EventSources/Blocking queries. This adds it in for intentions --- ui-v2/app/controllers/dc/intentions/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui-v2/app/controllers/dc/intentions/index.js b/ui-v2/app/controllers/dc/intentions/index.js index 88c0b8e72d..422345d862 100644 --- a/ui-v2/app/controllers/dc/intentions/index.js +++ b/ui-v2/app/controllers/dc/intentions/index.js @@ -2,6 +2,7 @@ import Controller from '@ember/controller'; import { computed, get } from '@ember/object'; import WithFiltering from 'consul-ui/mixins/with-filtering'; import WithSearching from 'consul-ui/mixins/with-searching'; +import WithEventSource from 'consul-ui/mixins/with-event-source'; import ucfirst from 'consul-ui/utils/ucfirst'; // TODO: DRY out in acls at least const createCounter = function(prop) { @@ -10,7 +11,7 @@ const createCounter = function(prop) { }; }; const countAction = createCounter('Action'); -export default Controller.extend(WithSearching, WithFiltering, { +export default Controller.extend(WithSearching, WithFiltering, WithEventSource, { queryParams: { action: { as: 'action',