use outer-html component as a base for empty state
This commit is contained in:
parent
adaf7127ae
commit
e89a6d6176
|
@ -1,6 +1,7 @@
|
|||
import OuterHTML from './outer-html';
|
||||
import Component from '@ember/component';
|
||||
|
||||
export default Component.extend({
|
||||
export default OuterHTML.extend({
|
||||
title: null,
|
||||
classNames: ['empty-state box is-sideless is-marginless is-fullwidth is-bottomless'],
|
||||
message: null,
|
||||
});
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<div class="empty-state-content">
|
||||
<h3 class="empty-state-title">
|
||||
{{title}}
|
||||
</h3>
|
||||
{{#if message}}
|
||||
<div class="empty-state box is-sideless is-marginless is-fullwidth is-bottomless">
|
||||
<div class="empty-state-content">
|
||||
<h3 class="empty-state-title">
|
||||
{{title}}
|
||||
</h3>
|
||||
{{#if message}}
|
||||
<p class="empty-state-message">
|
||||
{{message}}
|
||||
</p>
|
||||
{{/if}}
|
||||
{{#if hasBlock}}
|
||||
{{/if}}
|
||||
{{#if hasBlock}}
|
||||
<div class="empty-state-actions">
|
||||
{{yield}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue