From c6d8d1d96331de14f62178d6948a66ad9a3ac4b1 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Mon, 23 Jan 2017 01:32:08 +0100 Subject: [feature] add pixelated button to UI this button will call the exported qt method to open a new window --- ui/app/components/main_panel/email_section.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'ui/app/components/main_panel') diff --git a/ui/app/components/main_panel/email_section.js b/ui/app/components/main_panel/email_section.js index e382c9d8..8947e389 100644 --- a/ui/app/components/main_panel/email_section.js +++ b/ui/app/components/main_panel/email_section.js @@ -94,6 +94,15 @@ export default class EmailSection extends React.Component { App.show('addressbook', {account: this.props.account}) } + openPixelated() { + if (bitmaskBrowser) { + // we are inside a qtwebkit page that exports the object + bitmaskBrowser.openPixelated(); + } else { + window.open("http://localhost:9090"); + } + } + openApp() {} openPrefs() {} @@ -114,7 +123,7 @@ export default class EmailSection extends React.Component { let body = null let header =

Mail

if (this.state.status == 'on') { - // button = + button = } if (this.state.status == 'disabled') { header =

Mail Disabled

@@ -123,8 +132,8 @@ export default class EmailSection extends React.Component { body = (
{message} + -
) } -- cgit v1.2.3