mirror of https://github.com/status-im/consul.git
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>
|
||||
|
|
|
@ -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 |
|
@ -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…
Reference in New Issue