danger color for payable functions

pull/1/head
Liana Husikyan 5 years ago committed by LianaHus
parent 282c351da6
commit b372afd6f1
  1. 4
      src/app/ui/multiParamManager.js

@ -207,7 +207,9 @@ class MultiParamManager {
if (this.funABI.payable === true) { if (this.funABI.payable === true) {
contractProperty.classList.add(css.payable) contractProperty.classList.add(css.payable)
button.setAttribute('title', (title + ' - transact (payable)')) button.setAttribute('title', (title + ' - transact (payable)'))
this.contractActionsContainerSingle.querySelector('button').setAttribute('title', (title + ' - transact (payable)')) let funButton = this.contractActionsContainerSingle.querySelector('button')
funButton.setAttribute('title', (title + ' - transact (payable)'))
funButton.classList.add('btn-danger')
} }
if (!this.lookupOnly && this.funABI.payable === false) { if (!this.lookupOnly && this.funABI.payable === false) {

Loading…
Cancel
Save