Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into 2493-route_ticket_drag_and_drop
This commit is contained in:
commit
b07ae3f60c
|
@ -76,12 +76,6 @@
|
||||||
},
|
},
|
||||||
"UserLog": {
|
"UserLog": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
},
|
|
||||||
"WorkerTimeControlParams": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
},
|
|
||||||
"WorkerTimeControlMail": {
|
|
||||||
"dataSource": "vn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
module.exports = Self => {
|
|
||||||
require('../methods/imap-time-control/checkInbox')(Self);
|
|
||||||
};
|
|
|
@ -52,7 +52,7 @@
|
||||||
icon="add"
|
icon="add"
|
||||||
ui-sref="client.card.greuge.create"
|
ui-sref="client.card.greuge.create"
|
||||||
vn-tooltip="New greuge"
|
vn-tooltip="New greuge"
|
||||||
vn-acl="salesAssistant"
|
vn-acl="salesAssistant,claimManager"
|
||||||
vn-acl-action="remove"
|
vn-acl-action="remove"
|
||||||
vn-bind="+"
|
vn-bind="+"
|
||||||
fixed-bottom-right>
|
fixed-bottom-right>
|
||||||
|
|
|
@ -185,7 +185,7 @@
|
||||||
"state": "client.card.greuge.create",
|
"state": "client.card.greuge.create",
|
||||||
"component": "vn-client-greuge-create",
|
"component": "vn-client-greuge-create",
|
||||||
"description": "New greuge",
|
"description": "New greuge",
|
||||||
"acl": ["salesAssistant"],
|
"acl": ["salesAssistant", "claimManager"],
|
||||||
"params": {
|
"params": {
|
||||||
"client": "$ctrl.client"
|
"client": "$ctrl.client"
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,10 @@ module.exports = Self => {
|
||||||
imap.once('ready', function() {
|
imap.once('ready', function() {
|
||||||
openInbox(function(err, box) {
|
openInbox(function(err, box) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
const totalMessages = box.messages.total;
|
||||||
|
if (totalMessages == 0)
|
||||||
|
imap.end();
|
||||||
|
|
||||||
let f = imap.seq.fetch('1:*', {
|
let f = imap.seq.fetch('1:*', {
|
||||||
bodies: ['HEADER.FIELDS (FROM SUBJECT)', '1'],
|
bodies: ['HEADER.FIELDS (FROM SUBJECT)', '1'],
|
||||||
struct: true
|
struct: true
|
|
@ -55,6 +55,12 @@
|
||||||
},
|
},
|
||||||
"WorkerLog": {
|
"WorkerLog": {
|
||||||
"dataSource": "vn"
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"WorkerTimeControlParams": {
|
||||||
|
"dataSource": "vn"
|
||||||
|
},
|
||||||
|
"WorkerTimeControlMail": {
|
||||||
|
"dataSource": "vn"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = Self => {
|
||||||
|
require('../methods/worker-time-control-mail/checkInbox')(Self);
|
||||||
|
};
|
Loading…
Reference in New Issue