Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zimbra-admin-api-js
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Public
zimbra-admin-api-js
Commits
ba1d591d
Commit
ba1d591d
authored
May 20, 2016
by
Patricio Bruna
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:ZBoxApp/manager-react
parents
d5275fae
8747a6ec
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
7 deletions
+20
-7
.gitignore
.gitignore
+2
-0
path.json
path.json
+1
-1
info_general_mailbox.jsx
src/components/mailbox/info_general_mailbox.jsx
+7
-2
config.json
src/config/config.json
+10
-4
No files found.
.gitignore
View file @
ba1d591d
...
...
@@ -2,7 +2,9 @@
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
dist
src/config
node_modules
path.json
.npminstall
ncp-debug.log
npm-debug.log
...
...
path.json
View file @
ba1d591d
module.exports
=
{
"main"
:{
"js"
:
"/887398bundle.js"
}}
\ No newline at end of file
module.exports
=
{
"main"
:{
"js"
:
"/359343bundle.js"
}}
\ No newline at end of file
src/components/mailbox/info_general_mailbox.jsx
View file @
ba1d591d
...
...
@@ -45,11 +45,16 @@ export default class BlockGeneralInfoMailbox extends React.Component {
render
()
{
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
(
this
.
data
);
//eslint-disable-line no-console
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
)
{
case
'premium'
:
...
...
src/config/config.json
View file @
ba1d591d
{
"debug"
:
true
,
"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"
,
"webMailUrl"
:
"https://zimbra.zboxapp.dev"
,
"dns"
:
{
...
...
@@ -11,9 +11,15 @@
"maxResultOnRequestZimbra"
:
4000
,
"autoincrementOnFailRequestZimbra"
:
500
,
"plans"
:
{
"basic"
:
true
,
"premium"
:
true
,
"professional"
:
true
,
"basic"
:
{
"statusCos"
:
"btn-success"
},
"premium"
:
{
"statusCos"
:
"btn-primary2"
},
"professional"
:
{
"statusCos"
:
"btn-primary"
},
"default"
:
false
},
"multiFormDomain"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment