open-vault/ui/stories/message-error.stories.js
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

26 lines
586 B
JavaScript

/* eslint-disable import/extensions */
import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './message-error.md';
let model = Ember.Object.create({
adapterError: {
message: 'This is an adapterError on the model'
},
isError: true
});
storiesOf('MessageError/', module)
.addParameters({ options: { showPanel: true } })
.add(`MessageError`, () => ({
template: hbs`
<h5 class="title is-5">Message Error</h5>
<MessageError @model={{model}} />
`,
context: {
model
}
}),
{notes}
);