From 5263d04317eb8e827e9ee38f675b94a7d830d91d Mon Sep 17 00:00:00 2001 From: John Cowen Date: Tue, 22 May 2018 17:12:36 +0100 Subject: [PATCH] Remove SourceType for the moment --- ui-v2/app/controllers/dc/intentions/edit.js | 3 --- ui-v2/app/routes/dc/intentions/create.js | 1 - ui-v2/app/routes/dc/intentions/edit.js | 1 - ui-v2/app/templates/dc/intentions/-form.hbs | 10 +--------- 4 files changed, 1 insertion(+), 14 deletions(-) diff --git a/ui-v2/app/controllers/dc/intentions/edit.js b/ui-v2/app/controllers/dc/intentions/edit.js index b7693bff6..5b5b400e2 100644 --- a/ui-v2/app/controllers/dc/intentions/edit.js +++ b/ui-v2/app/controllers/dc/intentions/edit.js @@ -18,9 +18,6 @@ export default Controller.extend({ change: function(e) { const target = e.target; switch (target.name) { - case 'SourceType': - set(this.changeset, target.name, target.value); - break; case 'Action': set(this.changeset, target.name, target.value); break; diff --git a/ui-v2/app/routes/dc/intentions/create.js b/ui-v2/app/routes/dc/intentions/create.js index 755eb0f0a..c05f05ba1 100644 --- a/ui-v2/app/routes/dc/intentions/create.js +++ b/ui-v2/app/routes/dc/intentions/create.js @@ -17,7 +17,6 @@ export default Route.extend(WithIntentionActions, { create: true, isLoading: false, item: this.item, - types: ['consul', 'externaluri'], intents: ['allow', 'deny'], }); }, diff --git a/ui-v2/app/routes/dc/intentions/edit.js b/ui-v2/app/routes/dc/intentions/edit.js index 70acfae4d..9a75d057b 100644 --- a/ui-v2/app/routes/dc/intentions/edit.js +++ b/ui-v2/app/routes/dc/intentions/edit.js @@ -11,7 +11,6 @@ export default Route.extend(WithAclActions, { return hash({ isLoading: false, item: get(this, 'repo').findBySlug(params.id, this.modelFor('dc').dc.Name), - types: ['consul', 'externaluri'], intents: ['allow', 'deny'], }); }, diff --git a/ui-v2/app/templates/dc/intentions/-form.hbs b/ui-v2/app/templates/dc/intentions/-form.hbs index ac5b0663f..93a0734d5 100644 --- a/ui-v2/app/templates/dc/intentions/-form.hbs +++ b/ui-v2/app/templates/dc/intentions/-form.hbs @@ -5,21 +5,13 @@ {{input value=item.SourceName name='source' autofocus='autofocus'}} Choose a Consul Service, write in a future Consul Service, or write any Service URL -
- {{#each types as |type|}} - - {{/each}} -
- {{#each itents as |intent|}} + {{#each intents as |intent|}}