diff --git a/src/app/tabs/runTab/model/settings.js b/src/app/tabs/runTab/model/settings.js index 5d961c077c..1e20960a71 100644 --- a/src/app/tabs/runTab/model/settings.js +++ b/src/app/tabs/runTab/model/settings.js @@ -93,7 +93,7 @@ class Settings { const hashedMsg = executionContext.web3().sha3(message) try { executionContext.web3().eth.sign(account, hashedMsg, (error, signedData) => { - cb(error, hashedMsg, signedData) + cb(error.message, hashedMsg, signedData) }) } catch (e) { cb(e.message) @@ -105,7 +105,7 @@ class Settings { try { var personal = new Personal(executionContext.web3().currentProvider) personal.sign(hashedMsg, account, passphrase, (error, signedData) => { - cb(error, hashedMsg, signedData) + cb(error.message, hashedMsg, signedData) }) } catch (e) { cb(e.message) diff --git a/src/app/ui/tooltip.js b/src/app/ui/tooltip.js index bf8b3f1a87..b573026437 100644 --- a/src/app/ui/tooltip.js +++ b/src/app/ui/tooltip.js @@ -1,5 +1,6 @@ var yo = require('yo-yo') var css = require('./styles/tooltip-styles') +var modal = require('./modal-dialog-custom') /** * Open a tooltip @@ -25,9 +26,11 @@ class Toaster { opts = defaultOptions(opts) return new Promise((resolve, reject) => { + const shortTooltipText = tooltipText.length > 201 ? tooltipText.substring(0, 200) + '...' : tooltipText + this.tooltip = yo`
{ over() }} onmouseleave=${() => { out() }}> - ${tooltipText} + ${shortTooltipText} ${action}
` let timeOut = () => {