Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
DeStream-public
Breeze
Commits
abc46180
Commit
abc46180
authored
May 15, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add copy to clipboard at receive component
parent
1f09b6fa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
package.json
Breeze.UI/package.json
+1
-0
app.module.ts
Breeze.UI/src/app/app.module.ts
+3
-1
receive.component.html
Breeze.UI/src/app/wallet/receive/receive.component.html
+1
-0
receive.component.ts
Breeze.UI/src/app/wallet/receive/receive.component.ts
+5
-1
No files found.
Breeze.UI/package.json
View file @
abc46180
...
...
@@ -37,6 +37,7 @@
"angular2-material-datepicker"
:
"^0.5.0"
,
"bootstrap"
:
"^4.0.0-alpha.6"
,
"core-js"
:
"^2.4.1"
,
"ngx-clipboard"
:
"^8.0.2"
,
"rxjs"
:
"^5.4.0"
,
"zone.js"
:
"^0.8.10"
},
...
...
Breeze.UI/src/app/app.module.ts
View file @
abc46180
...
...
@@ -3,7 +3,8 @@ import { BrowserModule } from '@angular/platform-browser';
import
{
FormsModule
,
ReactiveFormsModule
}
from
"@angular/forms"
;
import
{
HttpModule
}
from
'@angular/http'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
NgbModule
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbModule
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ClipboardModule
}
from
'ngx-clipboard'
;
import
{
SharedModule
}
from
'./shared/shared.module'
;
...
...
@@ -24,6 +25,7 @@ import { ReceiveComponent } from './wallet/receive/receive.component';
AppRoutingModule
,
BrowserModule
,
BrowserAnimationsModule
,
ClipboardModule
,
ReactiveFormsModule
,
FormsModule
,
HttpModule
,
...
...
Breeze.UI/src/app/wallet/receive/receive.component.html
View file @
abc46180
...
...
@@ -12,6 +12,7 @@
</thead>
<tr>
<td>
{{ address }}
</td>
<td><button
class=
"btn"
type=
"button"
ngxClipboard
[
cbContent
]="
address
"
(
cbOnSuccess
)="
isCopied1=
true"
[
class
.
btn-success
]=
"
isCopied1
"
>
Copy
</button>
</tr>
</table>
</div>
...
...
Breeze.UI/src/app/wallet/receive/receive.component.ts
View file @
abc46180
...
...
@@ -16,13 +16,17 @@ import {NgbModal, NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
export
class
ReceiveComponent
{
constructor
(
private
apiService
:
ApiService
,
private
globalService
:
GlobalService
,
public
activeModal
:
NgbActiveModal
)
{}
private
address
:
any
;
private
address
:
any
=
""
;
private
errorMessage
:
string
;
ngOnInit
()
{
this
.
getUnusedReceiveAddresses
();
}
private
copyAddress
()
{
}
private
getUnusedReceiveAddresses
()
{
let
walletInfo
=
new
WalletInfo
(
this
.
globalService
.
getWalletName
(),
this
.
globalService
.
getCoinType
())
this
.
apiService
.
getUnusedReceiveAddress
(
walletInfo
)
...
...
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