Vulcan/packages/telescope-posts/lib/config.js

38 lines
653 B
JavaScript
Raw Normal View History

/**
* Posts config namespace
* @type {Object}
*/
Posts.config = {};
/**
* Post Statuses
*/
Posts.config.postStatuses = [
{
value: 1,
2015-05-14 11:38:01 +09:00
label: function(){return i18n.t('pending');}
},
{
value: 2,
2015-05-14 11:38:01 +09:00
label: function(){return i18n.t('approved');}
},
{
value: 3,
2015-05-14 11:38:01 +09:00
label: function(){return i18n.t('rejected');}
2015-11-18 15:03:17 +09:00
},
{
value: 4,
label: function(){return i18n.t('spam');}
},
{
value: 5,
label: function(){return i18n.t('deleted');}
}
];
Posts.config.STATUS_PENDING = 1;
Posts.config.STATUS_APPROVED = 2;
2015-11-18 15:03:17 +09:00
Posts.config.STATUS_REJECTED = 3;
Posts.config.STATUS_SPAM = 4;
Posts.config.STATUS_DELETED = 5;