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
5494e704
Commit
5494e704
authored
May 31, 2016
by
Juorder Antonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
identify archive accounts, close modal when adding massive mailboxes, update api zimbra client
parent
33429c38
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
12 deletions
+38
-12
Vagrantfile
Vagrantfile
+1
-1
path.json
path.json
+1
-1
import_massive_modal.jsx
src/components/import_massive_modal.jsx
+10
-2
create_mailbox.jsx
src/components/mailbox/create_mailbox.jsx
+17
-0
mailbox.jsx
src/components/mailbox/mailbox.jsx
+7
-7
config.json
src/config/config.json
+2
-1
No files found.
Vagrantfile
View file @
5494e704
# -*
-
mode: ruby -*-
# -*
t
mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
...
...
path.json
View file @
5494e704
module.exports
=
{
"main"
:{
"js"
:
"/012994bundle.js"
}}
\ No newline at end of file
module.exports
=
{
"main"
:{
"js"
:
"/275274bundle.js"
}}
\ No newline at end of file
src/components/import_massive_modal.jsx
View file @
5494e704
...
...
@@ -15,6 +15,7 @@ export default class ImportMassiveModal extends React.Component {
super
(
props
);
this
.
isDEV
=
window
.
manager_config
.
DEV
;
this
.
isStoreEnabled
=
window
.
manager_config
.
enableStores
;
this
.
createMassiveAccounts
=
this
.
createMassiveAccounts
.
bind
(
this
);
this
.
onSubmit
=
this
.
onSubmit
.
bind
(
this
);
this
.
buildCols
=
this
.
buildCols
.
bind
(
this
);
...
...
@@ -38,7 +39,7 @@ export default class ImportMassiveModal extends React.Component {
this
.
plans
=
Utils
.
getEnabledPlansByCos
(
ZimbraStore
.
getAllCos
());
this
.
limit
=
20
0
;
this
.
limit
=
5
0
;
this
.
state
=
{
options
:
this
.
options
...
...
@@ -288,6 +289,11 @@ export default class ImportMassiveModal extends React.Component {
let
runAgain
=
false
;
let
loop
=
0
;
//Aqui va error batchrequest
if
(
this
.
props
.
show
)
{
this
.
props
.
onHide
();
}
for
(
const
account
in
accounts
)
{
if
(
accounts
.
hasOwnProperty
(
account
))
{
const
zimbraCOS
=
this
.
isDEV
?
accounts
[
account
].
zimbraCOSId
.
trim
().
toLowerCase
()
:
Utils
.
titleCase
(
accounts
[
account
].
zimbraCOSId
.
trim
());
...
...
@@ -337,7 +343,9 @@ export default class ImportMassiveModal extends React.Component {
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
const
account
=
response
.
CreateAccountResponse
[
i
].
account
[
0
];
const
accountFormatted
=
Client
.
buildAccountByObject
(
account
);
MailboxStore
.
setMailbox
(
accountFormatted
);
if
(
this
.
isStoreEnabled
)
{
MailboxStore
.
setMailbox
(
accountFormatted
);
}
}
MailboxStore
.
emitAddMassive
();
...
...
src/components/mailbox/create_mailbox.jsx
View file @
5494e704
...
...
@@ -34,6 +34,7 @@ export default class CreateMailBox extends React.Component {
this
.
cacheDomain
=
null
;
this
.
state
=
{};
this
.
s
=
true
;
}
handlePasswd
(
e
)
{
...
...
@@ -341,6 +342,17 @@ export default class CreateMailBox extends React.Component {
this
.
getAllDomains
();
GlobalActions
.
emitEndLoading
();
this
.
addBlurListeneronInput
();
/*console.log(this.s);
setTimeout(() => {
console.log('setTimeout', this.s);
if (this.s) {
console.log('set state');
this.setState({
flag: true
})
}
}, 10000);*/
}
componentWillUnmount
()
{
...
...
@@ -349,6 +361,11 @@ export default class CreateMailBox extends React.Component {
this
.
cacheDomain
=
null
;
const
parent
=
document
.
getElementById
(
'add-mailbox'
);
parent
.
removeEventListener
(
'focusout'
,
null
);
this
.
s
=
false
;
}
shouldComponentUpdate
()
{
return
true
;
}
controllerDataList
(
controller
)
{
...
...
src/components/mailbox/mailbox.jsx
View file @
5494e704
...
...
@@ -202,8 +202,7 @@ export default class Mailboxes extends React.Component {
};
this
.
setState
({
loading
:
true
,
data
:
null
loading
:
true
});
const
attrneeded
=
Utils
.
getAttrsBySectionFromConfig
(
'mailboxes'
);
...
...
@@ -245,7 +244,6 @@ export default class Mailboxes extends React.Component {
if
(
hasMailboxes
)
{
return
resolve
(
MailboxStore
.
getMailboxes
());
}
return
Client
.
getAllAccounts
(
attrs
,
(
success
)
=>
{
const
data
=
Utils
.
extractLockOuts
(
success
);
if
(
this
.
isStoreEnabled
)
{
...
...
@@ -276,7 +274,8 @@ export default class Mailboxes extends React.Component {
return
this
.
setState
({
data
:
tables
,
loading
:
false
loading
:
false
,
ac
:
data
.
account
});
}
...
...
@@ -331,8 +330,9 @@ export default class Mailboxes extends React.Component {
data
:
tables
});
}
return
this
.
getAllMailboxes
();
const
domainId
=
this
.
props
.
params
.
domain_id
;
this
.
domainId
=
domainId
;
return
this
.
getAllMailboxes
(
domainId
);
}
componentDidMount
()
{
...
...
@@ -365,7 +365,7 @@ export default class Mailboxes extends React.Component {
}
if
(
!
tipo
)
{
tipo
=
'Desconocido'
;
tipo
=
row
.
archiveEnabled
?
'Archiving'
:
'Desconocido'
;
}
displayName
=
attrs
.
displayName
||
`
${
attrs
.
givenName
||
attrs
.
cn
}
${
attrs
.
sn
}
`
;
...
...
src/config/config.json
View file @
5494e704
...
...
@@ -24,7 +24,8 @@
"statusCos"
:
"btn-primary2"
,
"label"
:
"Premium"
,
"isEnabledToEdit"
:
true
,
"forRights"
:
true
"forRights"
:
true
,
"archiving"
:
true
},
"professional"
:
{
"statusCos"
:
"btn-primary"
,
...
...
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