diff --git a/.changelog/23481.txt b/.changelog/23481.txt new file mode 100644 index 00000000000..125430d5b64 --- /dev/null +++ b/.changelog/23481.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: Removed block-slot addon dependency +``` \ No newline at end of file diff --git a/ui/packages/consul-ui/app/components/app-error/index.hbs b/ui/packages/consul-ui/app/components/app-error/index.hbs index ca65502f593..6d5a67e0f97 100644 --- a/ui/packages/consul-ui/app/components/app-error/index.hbs +++ b/ui/packages/consul-ui/app/components/app-error/index.hbs @@ -4,15 +4,15 @@ }} - + <:header>

Error {{@error.status}}

-
- + + <:content> - +
diff --git a/ui/packages/consul-ui/app/components/app-view/README.mdx b/ui/packages/consul-ui/app/components/app-view/README.mdx index 12a7a459fc2..ea461307f70 100644 --- a/ui/packages/consul-ui/app/components/app-view/README.mdx +++ b/ui/packages/consul-ui/app/components/app-view/README.mdx @@ -23,22 +23,22 @@ breadcrumbs and back again. - + <:header>

Main title {{format-number "100000"}} total {{pluralize 100000 "thing" without-count=true}} in this page

-
- + + <:content> - + <:body>

Nothing to see here

-
+
-
+
Basic list-like view
@@ -48,36 +48,36 @@ breadcrumbs and back again.
- + <:breadcrumbs>
  1. Hansel
  2. Gretel
-
+ - + <:header>

Scary witch's gingerbread house (run away quick!)

-
+ - + <:actions> Run away! - + - + <:content> - + <:body>

Double, double toil and trouble

-
+
-
+
Basic detail-like view
diff --git a/ui/packages/consul-ui/app/components/app-view/index.hbs b/ui/packages/consul-ui/app/components/app-view/index.hbs index 6cb7e313ee8..a0f4fb8350c 100644 --- a/ui/packages/consul-ui/app/components/app-view/index.hbs +++ b/ui/packages/consul-ui/app/components/app-view/index.hbs @@ -11,36 +11,34 @@
-
- - {{document-attrs class="with-breadcrumbs"}} - {{yield}} - -
+
- - {{yield}} - + {{yield to='header'}}
- - - {{yield}} - + + {{#if (has-block 'actions')}} + {{yield to='actions'}} + {{/if}}
- - {{yield}} - + {{#if (has-block 'nav')}} + {{yield to='nav'}} + {{/if}}
- + {{#if (has-block 'toolbar')}} - {{yield}} - + {{yield to='toolbar'}} + {{/if}}
- {{yield}} + {{yield to='content'}}
diff --git a/ui/packages/consul-ui/app/components/app-view/index.js b/ui/packages/consul-ui/app/components/app-view/index.js index f0f07373de6..b9f3eb8f0e2 100644 --- a/ui/packages/consul-ui/app/components/app-view/index.js +++ b/ui/packages/consul-ui/app/components/app-view/index.js @@ -4,7 +4,7 @@ */ import Component from '@ember/component'; -import SlotsMixin from 'block-slots'; -export default Component.extend(SlotsMixin, { + +export default Component.extend({ tagName: '', }); diff --git a/ui/packages/consul-ui/app/components/child-selector/index.hbs b/ui/packages/consul-ui/app/components/child-selector/index.hbs index ac492ee8898..5cfe1ac4b04 100644 --- a/ui/packages/consul-ui/app/components/child-selector/index.hbs +++ b/ui/packages/consul-ui/app/components/child-selector/index.hbs @@ -10,9 +10,9 @@ > {{yield}} {{#if (not @disabled)}} - {{yield}} + {{yield to="create"}}