From e7d75bda71e0250f4078d92633fd06a5a4d73a16 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Wed, 25 Apr 2018 18:03:00 -0300 Subject: [PATCH] Added donate button to tabbar --- app/view/main/Main.js | 11 ++++++++++- app/view/main/MainController.js | 2 +- index.html | 22 ++++++++++++++-------- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/app/view/main/Main.js b/app/view/main/Main.js index 1b0f1e34..34d9d1c3 100644 --- a/app/view/main/Main.js +++ b/app/view/main/Main.js @@ -25,6 +25,15 @@ Ext.define('Rambox.view.main.Main', { ,autoRender: true ,autoShow: true ,deferredRender: false + ,tabBar: { + items: [{ + xtype: 'button' + ,html: '' + ,baseCls: '' + ,tooltip: locale['app.main[25]'] + ,href: 'https://fundraiseup.com/widget/FUNSGXPIJWQ/donate?key=KPCFEZKZ' + }] + } ,items: [ { icon: 'resources/IconTray@2x.png' @@ -329,7 +338,7 @@ Ext.define('Rambox.view.main.Main', { ,{ text: locale['app.main[25]'] ,glyph: 'xf21e@FontAwesome' - ,handler: 'showDonate' + ,href: 'https://fundraiseup.com/widget/FUNSGXPIJWQ/donate?key=KPCFEZKZ' } ,{ text: 'Translation' diff --git a/app/view/main/MainController.js b/app/view/main/MainController.js index 59ab47d1..916d1489 100644 --- a/app/view/main/MainController.js +++ b/app/view/main/MainController.js @@ -484,6 +484,6 @@ Ext.define('Rambox.view.main.MainController', { } ,showDonate: function( btn ) { - Tooltip.API.show('zxzKWZfcmgRtHXgth'); + Signalayer.API.show('tChaoq3PwSG9wswhn'); } }); diff --git a/index.html b/index.html index 42f1c9da..1e96df1c 100644 --- a/index.html +++ b/index.html @@ -44,16 +44,22 @@ - + - +