Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
478fe25f
Commit
478fe25f
authored
Dec 07, 2016
by
chriseth
Committed by
GitHub
Dec 07, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #352 from ethereum/payable-buttons
Payable buttons
parents
7c752f0b
1e3c6465
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
universal-dapp.css
assets/css/universal-dapp.css
+15
-5
universal-dapp.js
src/universal-dapp.js
+5
-0
No files found.
assets/css/universal-dapp.css
View file @
478fe25f
...
@@ -223,8 +223,8 @@
...
@@ -223,8 +223,8 @@
}
}
.udapp
.contractProperty
.call
{
.udapp
.contractProperty
.call
{
background-color
:
#FF
8B8B
;
background-color
:
#FF
B9B9
;
border-color
:
#FF
8B8B
;
border-color
:
#FF
B9B9
;
}
}
.udapp
.contractProperty
.debug
{
.udapp
.contractProperty
.debug
{
...
@@ -238,6 +238,12 @@
...
@@ -238,6 +238,12 @@
width
:
25%
;
width
:
25%
;
}
}
.udapp
.contractProperty.payable
.call
{
background-color
:
#FF8B8B
;
border-color
:
#FF8B8B
;
width
:
25%
;
}
.udapp
.contractProperty
input
{
.udapp
.contractProperty
input
{
display
:
none
;
display
:
none
;
}
}
...
@@ -307,13 +313,17 @@
...
@@ -307,13 +313,17 @@
}
}
.udapp
.legend
.attach
:before
{
.udapp
.legend
.attach
:before
{
background-color
:
#
62B762
;
background-color
:
#
B1EAC5
;
}
}
.udapp
.legend
.transact
:before
{
.udapp
.legend
.transact
:before
{
background-color
:
#D42828
;
background-color
:
#FFB9B9
;
}
.udapp
.legend
.payable
:before
{
background-color
:
#FF8B8B
;
}
}
.udapp
.legend
.call
:before
{
.udapp
.legend
.call
:before
{
background-color
:
#
556DF3
;
background-color
:
#
9DC1F5
;
}
}
src/universal-dapp.js
View file @
478fe25f
...
@@ -152,6 +152,7 @@ UniversalDApp.prototype.render = function () {
...
@@ -152,6 +152,7 @@ UniversalDApp.prototype.render = function () {
var
$legend
=
$
(
'<div class="legend" />'
)
var
$legend
=
$
(
'<div class="legend" />'
)
.
append
(
$
(
'<div class="attach"/>'
).
text
(
'Attach'
))
.
append
(
$
(
'<div class="attach"/>'
).
text
(
'Attach'
))
.
append
(
$
(
'<div class="transact"/>'
).
text
(
'Transact'
))
.
append
(
$
(
'<div class="transact"/>'
).
text
(
'Transact'
))
.
append
(
$
(
'<div class="payable"/>'
).
text
(
'Transact (Payable)'
))
.
append
(
$
(
'<div class="call"/>'
).
text
(
'Call'
))
.
append
(
$
(
'<div class="call"/>'
).
text
(
'Call'
))
self
.
$el
.
append
(
$legend
)
self
.
$el
.
append
(
$legend
)
...
@@ -654,6 +655,10 @@ UniversalDApp.prototype.getCallButton = function (args) {
...
@@ -654,6 +655,10 @@ UniversalDApp.prototype.getCallButton = function (args) {
$contractProperty
.
addClass
(
'hasArgs'
)
$contractProperty
.
addClass
(
'hasArgs'
)
}
}
if
(
args
.
abi
.
payable
===
true
)
{
$contractProperty
.
addClass
(
'payable'
)
}
return
$contractProperty
.
append
(
outputSpan
)
return
$contractProperty
.
append
(
outputSpan
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment