From eb92e648a033e6df49f2acd108ec3df8fc4762a8 Mon Sep 17 00:00:00 2001 From: yuri Date: Thu, 4 Aug 2016 12:52:37 +0300 Subject: [PATCH] dashlet action url --- client/modules/crm/src/views/dashlets/activities.js | 6 ++++-- client/res/templates/dashlet.tpl | 2 +- client/src/views/dashlets/abstract/record-list.js | 3 ++- client/src/views/dashlets/stream.js | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/client/modules/crm/src/views/dashlets/activities.js b/client/modules/crm/src/views/dashlets/activities.js index 1cbc49de44..e8547b0bc7 100644 --- a/client/modules/crm/src/views/dashlets/activities.js +++ b/client/modules/crm/src/views/dashlets/activities.js @@ -86,14 +86,16 @@ Espo.define('crm:views/dashlets/activities', ['views/dashlets/abstract/base', 'm this.actionList.unshift({ name: 'createCall', html: this.translate('Create Call', 'labels', 'Call'), - iconHtml: '' + iconHtml: '', + url: '#Call/create' }); } if (this.getAcl().checkScope('Meeting', 'create')) { this.actionList.unshift({ name: 'createMeeting', html: this.translate('Create Meeting', 'labels', 'Meeting'), - iconHtml: '' + iconHtml: '', + url: '#Meeting/create' }); } }, diff --git a/client/res/templates/dashlet.tpl b/client/res/templates/dashlet.tpl index 61045b05a8..3418e2811c 100644 --- a/client/res/templates/dashlet.tpl +++ b/client/res/templates/dashlet.tpl @@ -4,7 +4,7 @@ diff --git a/client/src/views/dashlets/abstract/record-list.js b/client/src/views/dashlets/abstract/record-list.js index f0286d1ff7..c0c399e2f7 100644 --- a/client/src/views/dashlets/abstract/record-list.js +++ b/client/src/views/dashlets/abstract/record-list.js @@ -106,7 +106,8 @@ Espo.define('views/dashlets/abstract/record-list', ['views/dashlets/abstract/bas this.actionList.unshift({ name: 'create', html: this.translate('Create ' + this.scope, 'labels', this.scope), - iconHtml: '' + iconHtml: '', + url: '#'+this.scope+'/create' }); } }, diff --git a/client/src/views/dashlets/stream.js b/client/src/views/dashlets/stream.js index 8dba91de2b..9f75ef2811 100644 --- a/client/src/views/dashlets/stream.js +++ b/client/src/views/dashlets/stream.js @@ -64,7 +64,8 @@ Espo.define('views/dashlets/stream', 'views/dashlets/abstract/base', function (D this.actionList.unshift({ name: 'viewList', html: this.translate('View List'), - iconHtml: '' + iconHtml: '', + url: '#Stream' }); this.actionList.unshift({ name: 'create',