diff --git a/src/universal-dapp-styles.js b/src/universal-dapp-styles.js
index fc5a1a5c51..183b233b85 100644
--- a/src/universal-dapp-styles.js
+++ b/src/universal-dapp-styles.js
@@ -57,6 +57,9 @@ var css = csjs`
font-size: 16px;
padding-top: 5px;
vertical-align: top;
+ }
+ .cActionsWrapper {
+
}
.group:after {
content: "";
diff --git a/src/universal-dapp-ui.js b/src/universal-dapp-ui.js
index 0ec1ba9c84..ca0d57d52f 100644
--- a/src/universal-dapp-ui.js
+++ b/src/universal-dapp-ui.js
@@ -68,8 +68,8 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
var shortAddress = helper.shortenAddress(address)
var title = yo`
-
-
+
+
${contractName} at ${shortAddress} (${context})
${copyToClipboard(() => address)}
`
@@ -77,14 +77,20 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address
var close = yo`
`
title.appendChild(close)
+ var contractActionsWrapper = yo`
+
+
`
+
function remove () {
instance.remove()
// @TODO perhaps add a callack here to warn the caller that the instance has been removed
}
- function toggleClass () {
- console.log('hit')
+ function toggleClass (e) {
$(instance).toggleClass(`${css.hidesub}`)
+ // e.currentTarget.querySelector('i')
+ e.currentTarget.querySelector('i').classList.toggle(`fa-caret-right`)
+ e.currentTarget.querySelector('i').classList.toggle(`fa-caret-down`)
}
instance.appendChild(title)