From 969d7ce07cadfc04ca39223a86a9a5db78b52abb Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Mon, 16 Jan 2017 13:36:37 -0300 Subject: [PATCH] Show service on logo dbl click Fixes #377 --- app/view/main/Main.js | 3 ++- app/view/main/MainController.js | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/view/main/Main.js b/app/view/main/Main.js index 7fc1f123..15852d9e 100644 --- a/app/view/main/Main.js +++ b/app/view/main/Main.js @@ -214,7 +214,8 @@ Ext.define('Rambox.view.main.Main', { ,stripeRows: true } ,listeners: { - edit: 'onRenameService' + edit: 'onRenameService' + ,rowdblclick: 'showServiceTab' } } ] diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index b4b6519d..f864690f 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -36,6 +36,12 @@ Ext.define('Rambox.view.main.MainController', { store.resumeEvent('remove'); } + ,showServiceTab: function( grid, record, tr, rowIndex, e ) { + if ( e.position.colIdx === 0 ) { // Service Logo + Ext.getCmp('tab_'+record.get('id')).show(); + } + } + ,onRenameService: function(editor, e) { var me = this;