mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
ui: ConsulLoader component (#7719)
Moves the `consul-loader` partial to a template-only component
This commit is contained in:
parent
9795c8c2cd
commit
f8d920d9ef
@ -70,7 +70,7 @@
|
||||
{{/if}}
|
||||
<div>
|
||||
{{#if loading}}
|
||||
{{partial 'consul-loading'}}
|
||||
<ConsulLoader />
|
||||
{{else}}
|
||||
{{#if (not enabled) }}
|
||||
<YieldSlot @name="disabled">{{yield}}</YieldSlot>
|
||||
|
16
ui-v2/app/components/consul-loader/README.mdx
Normal file
16
ui-v2/app/components/consul-loader/README.mdx
Normal file
@ -0,0 +1,16 @@
|
||||
## ConsulLoader
|
||||
|
||||
`<ConsulLoader />`
|
||||
|
||||
Simple template-only component to show the circulr animated Consul loader animation.
|
||||
|
||||
| Argument | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
|
||||
|
||||
### See
|
||||
|
||||
- [Component Source Code](./index.js)
|
||||
- [Template Source Code](./index.hbs)
|
||||
|
||||
---
|
@ -51,4 +51,3 @@
|
||||
<circle r="9" cx="22" cy="22" style="transform-origin: 22px 22px" />
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
5
ui-v2/app/components/consul-loader/index.js
Normal file
5
ui-v2/app/components/consul-loader/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
tagName: '',
|
||||
});
|
@ -7,7 +7,7 @@
|
||||
{{else}}
|
||||
<AppView @class="loading show">
|
||||
<BlockSlot @name="content">
|
||||
{{partial 'consul-loading'}}
|
||||
<ConsulLoader />
|
||||
</BlockSlot>
|
||||
</AppView>
|
||||
{{/if}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user