diff --git a/ui/packages/consul-ui/app/components/node-identity/index.hbs b/ui/packages/consul-ui/app/components/consul/node-identity/template/index.hbs similarity index 82% rename from ui/packages/consul-ui/app/components/node-identity/index.hbs rename to ui/packages/consul-ui/app/components/consul/node-identity/template/index.hbs index e570640bee..54b3f29487 100644 --- a/ui/packages/consul-ui/app/components/node-identity/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/node-identity/template/index.hbs @@ -1,6 +1,6 @@ {{#if (env "CONSUL_NSPACES_ENABLED")}} namespace "default" { - node "{{name}}" { + node "{{@name}}" { policy = "write" } } @@ -10,7 +10,7 @@ namespace_prefix "" { } } {{else}} -node "{{name}}" { +node "{{@name}}" { policy = "write" } service_prefix "" { diff --git a/ui/packages/consul-ui/app/components/service-identity/index.hbs b/ui/packages/consul-ui/app/components/consul/service-identity/template/index.hbs similarity index 66% rename from ui/packages/consul-ui/app/components/service-identity/index.hbs rename to ui/packages/consul-ui/app/components/consul/service-identity/template/index.hbs index 597febc1b0..3a15533052 100644 --- a/ui/packages/consul-ui/app/components/service-identity/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/service-identity/template/index.hbs @@ -1,9 +1,9 @@ {{#if (env "CONSUL_NSPACES_ENABLED")}} -namespace "{{nspace}}" { - service "{{name}}" { +namespace "{{@nspace}}" { + service "{{@name}}" { policy = "write" } - service "{{name}}-sidecar-proxy" { + service "{{@name}}-sidecar-proxy" { policy = "write" } service_prefix "" { @@ -14,10 +14,10 @@ namespace "{{nspace}}" { } } {{else}} -service "{{name}}" { +service "{{@name}}" { policy = "write" } -service "{{name}}-sidecar-proxy" { +service "{{@name}}-sidecar-proxy" { policy = "write" } service_prefix "" { diff --git a/ui/packages/consul-ui/app/components/node-identity/index.js b/ui/packages/consul-ui/app/components/node-identity/index.js deleted file mode 100644 index 4798652642..0000000000 --- a/ui/packages/consul-ui/app/components/node-identity/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import Component from '@ember/component'; - -export default Component.extend({ - tagName: '', -}); diff --git a/ui/packages/consul-ui/app/components/policy-form/index.hbs b/ui/packages/consul-ui/app/components/policy-form/index.hbs index 71d130e2bb..18fab4fcee 100644 --- a/ui/packages/consul-ui/app/components/policy-form/index.hbs +++ b/ui/packages/consul-ui/app/components/policy-form/index.hbs @@ -35,15 +35,32 @@