diff --git a/ui-v2/app/routes/dc/intentions/create.js b/ui-v2/app/routes/dc/intentions/create.js index 05edabf226..640713040d 100644 --- a/ui-v2/app/routes/dc/intentions/create.js +++ b/ui-v2/app/routes/dc/intentions/create.js @@ -10,9 +10,6 @@ export default Route.extend(WithIntentionActions, { repo: service('repository/intention'), servicesRepo: service('repository/service'), nspacesRepo: service('repository/nspace/disabled'), - beforeModel: function() { - this.repo.invalidate(); - }, model: function(params) { const dc = this.modelFor('dc').dc.Name; const nspace = '*'; diff --git a/ui-v2/app/services/repository/intention.js b/ui-v2/app/services/repository/intention.js index 6cceccd293..bc2e0bae26 100644 --- a/ui-v2/app/services/repository/intention.js +++ b/ui-v2/app/services/repository/intention.js @@ -8,6 +8,13 @@ export default RepositoryService.extend({ getPrimaryKey: function() { return PRIMARY_KEY; }, + shouldReconcile: function(method) { + switch (method) { + case 'findByService': + return false; + } + return this._super(...arguments); + }, findByService: function(slug, dc, nspace, configuration = {}) { const query = { dc: dc,