diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index f350f269..ab99652f 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -285,6 +285,12 @@ Ext.define('Rambox.store.ServicesList', { ,name: 'TweetDeck' ,url: 'https://tweetdeck.twitter.com/' ,type: 'messaging' + }, + { + id: 'custom' + ,logo: 'custom.png' + ,name: '_Custom Service' + ,type: 'custom' } ] }); diff --git a/app/view/main/Main.js b/app/view/main/Main.js index 4d4f986b..a9e34aba 100644 --- a/app/view/main/Main.js +++ b/app/view/main/Main.js @@ -101,11 +101,6 @@ Ext.define('Rambox.view.main.Main', { ,specialkey: 'onSearchEnter' } } - ,{ - type: 'plus' - ,tooltip: 'Add a custom service' - ,handler: 'addCustomService' - } ] ,items: [ { diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index bfbd61f1..8488f661 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -590,7 +590,7 @@ Ext.define('Rambox.view.main.MainController', { Ext.getStore('ServicesList').getFilters().replaceAll({ fn: function(record) { - return Ext.Array.contains(Ext.Object.getKeys(cg.getValue()), record.get('type')); + return Ext.Array.contains(Ext.Object.getKeys(cg.getValue()), record.get('type')) || record.get('type') === 'custom'; } }); } @@ -604,6 +604,7 @@ Ext.define('Rambox.view.main.MainController', { Ext.getStore('ServicesList').getFilters().replaceAll({ fn: function(record) { + if ( record.get('type') === 'custom' ) return true; if ( !Ext.Array.contains(Ext.Object.getKeys(cg.getValue()), record.get('type')) ) return false; return record.get('name').toLowerCase().indexOf(newValue.toLowerCase()) > -1 ? true : false; } diff --git a/resources/icons/custom.png b/resources/icons/custom.png new file mode 100644 index 00000000..710acb6a Binary files /dev/null and b/resources/icons/custom.png differ