Allows dynamically changing breadcrumbs
This commit is contained in:
@@ -15,27 +15,28 @@ define(
|
|||||||
|
|
||||||
const Breadcrumb = React.createClass({
|
const Breadcrumb = React.createClass({
|
||||||
getInitialState: function () {
|
getInitialState: function () {
|
||||||
|
const steps = this.props.steps || [
|
||||||
|
{
|
||||||
|
name: 'type',
|
||||||
|
label: MailPoet.I18n.t('selectType'),
|
||||||
|
link: '/new',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'template',
|
||||||
|
label: MailPoet.I18n.t('template'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'editor',
|
||||||
|
label: MailPoet.I18n.t('designer'),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'send',
|
||||||
|
label: MailPoet.I18n.t('send'),
|
||||||
|
},
|
||||||
|
];
|
||||||
return {
|
return {
|
||||||
step: null,
|
step: null,
|
||||||
steps: [
|
steps: steps,
|
||||||
{
|
|
||||||
name: 'type',
|
|
||||||
label: MailPoet.I18n.t('selectType'),
|
|
||||||
link: '/new',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'template',
|
|
||||||
label: MailPoet.I18n.t('template'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'editor',
|
|
||||||
label: MailPoet.I18n.t('designer'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'send',
|
|
||||||
label: MailPoet.I18n.t('send'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
|
Reference in New Issue
Block a user