Commit 521a9939 authored by Elias Nahum's avatar Elias Nahum Committed by Juorder Antonio

solved issue to print statuscos from mailbox

parent 6a620463
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files # Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
dist dist
src/config
node_modules node_modules
path.json
.npminstall .npminstall
ncp-debug.log ncp-debug.log
npm-debug.log npm-debug.log
......
module.exports = {"main":{"js":"/887398bundle.js"}} module.exports = {"main":{"js":"/359343bundle.js"}}
\ No newline at end of file \ No newline at end of file
...@@ -45,11 +45,16 @@ export default class BlockGeneralInfoMailbox extends React.Component { ...@@ -45,11 +45,16 @@ export default class BlockGeneralInfoMailbox extends React.Component {
render() { render() {
let blockInfo = null; let blockInfo = null;
let statusCos = null; let cosName = 'Sin Plan';
let statusCos = 'label noplan btn-xs';
console.log(ZimbraStore.getAllCos()); //eslint-disable-line no-console console.log(ZimbraStore.getAllCos()); //eslint-disable-line no-console
console.log(this.data); //eslint-disable-line no-console console.log(this.data); //eslint-disable-line no-console
const cosID = Utils.getEnabledPlansObjectByCos(ZimbraStore.getAllCos(), this.props.data.attrs.zimbraCOSId); const cosID = Utils.getEnabledPlansObjectByCos(ZimbraStore.getAllCos(), this.props.data.attrs.zimbraCOSId);
let cosName = null;
if (window.manager_config.plans[cosID.name]) {
cosName = Utils.titleCase(cosID.name);
statusCos = 'label btn-xs' + window.manager_config.plans[cosID.name].statusCos;
}
switch (cosID.name) { switch (cosID.name) {
case 'premium': case 'premium':
......
{ {
"debug": true, "debug": true,
"zimbraUrl": "http://zimbra.zboxapp.dev:8000/service/admin/soap", "zimbraUrl": "http://zimbra.zboxapp.dev:8000/service/admin/soap",
"zimbraProxy": "https://zimbra.zboxapp.dev:7071", "zimbraProxy": "https://192.168.1.8:7071",
"dnsApiUrl": "http://zimbra.zboxapp.dev:3000", "dnsApiUrl": "http://zimbra.zboxapp.dev:3000",
"webMailUrl": "https://zimbra.zboxapp.dev", "webMailUrl": "https://zimbra.zboxapp.dev",
"dns": { "dns": {
...@@ -11,9 +11,15 @@ ...@@ -11,9 +11,15 @@
"maxResultOnRequestZimbra": 4000, "maxResultOnRequestZimbra": 4000,
"autoincrementOnFailRequestZimbra": 500, "autoincrementOnFailRequestZimbra": 500,
"plans": { "plans": {
"basic": true, "basic": {
"premium": true, "statusCos": "btn-success"
"professional": true, },
"premium": {
"statusCos": "btn-primary2"
},
"professional": {
"statusCos": "btn-primary"
},
"default": false "default": false
}, },
"multiFormDomain": { "multiFormDomain": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment