Commit 4e80d7f9 authored by Juorder Antonio's avatar Juorder Antonio

allow all user to buy mailboxes and watch their buttons

parent a7092ea2
......@@ -7,7 +7,6 @@ import MessageBar from '../message_bar.jsx';
import Panel from '../panel.jsx';
import ZimbraStore from '../../stores/zimbra_store.jsx';
import UserStore from '../../stores/user_store.jsx';
import * as Utils from '../../utils/utils.jsx';
......@@ -48,7 +47,13 @@ export default class DomainMailboxPlans extends React.Component {
}
const headerButtons = [
{
label: 'Comprar Casillas',
props: {
className: 'btn btn-info btn-xs',
onClick: (e) => Utils.handleLink(e, `/sales/${this.props.params.id}/mailboxes`, this.props.location)
}
},
{
label: 'Ver casillas',
props: {
......@@ -65,18 +70,6 @@ export default class DomainMailboxPlans extends React.Component {
}
];
if (UserStore.isGlobalAdmin()) {
headerButtons.unshift(
{
label: 'Comprar Casillas',
props: {
className: 'btn btn-info btn-xs',
onClick: (e) => Utils.handleLink(e, `/sales/${this.props.params.id}/mailboxes`, this.props.location)
}
}
);
}
const mailboxPlans = [];
let panelBody = null;
const cos = Utils.getEnabledPlansByCosId(ZimbraStore.getAllCos());
......
......@@ -14,7 +14,6 @@ import EventStore from '../../stores/event_store.jsx';
import MailboxStore from '../../stores/mailbox_store.jsx';
import DomainStore from '../../stores/domain_store.jsx';
import ZimbraStore from '../../stores/zimbra_store.jsx';
import UserStore from '../../stores/user_store.jsx';
import Constants from '../../utils/constants.jsx';
......@@ -298,7 +297,6 @@ export default class CreateMailBox extends React.Component {
});
}
if (UserStore.isGlobalAdmin()) {
const options = {
title: 'Comprar Casilla',
text: `Por ahora no tienes más cupo para crear una casilla tipo <strong>${Utils.titleCase(data.plan)}</strong>, ¿Deseas comprar más?`,
......@@ -315,7 +313,6 @@ export default class CreateMailBox extends React.Component {
}
}, options);
}
}
getAllDomains() {
const max = 1000;
......
......@@ -90,7 +90,6 @@ export default class EditMailBox extends React.Component {
});
}
if (UserStore.isGlobalAdmin()) {
const options = {
title: 'Plan sin cupo',
text: `Actualmente el plan <strong>${Utils.titleCase(data.plan)}</strong> no tiene cupo para completar la acción solicitada, por lo cual es necesario que compre más casillas`,
......@@ -206,7 +205,6 @@ export default class EditMailBox extends React.Component {
}
}, options);
}
}
removeAccount() {
const account = this.state.data;
......
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