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
402229bd
Commit
402229bd
authored
Jun 29, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add transaction details component
parent
ace1d9cb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
91 additions
and
2 deletions
+91
-2
app.module.ts
Breeze.UI/src/app/app.module.ts
+5
-2
transaction-details.component.html
...et/transaction-details/transaction-details.component.html
+39
-0
transaction-details.component.scss
...et/transaction-details/transaction-details.component.scss
+0
-0
transaction-details.component.spec.ts
...transaction-details/transaction-details.component.spec.ts
+25
-0
transaction-details.component.ts
...llet/transaction-details/transaction-details.component.ts
+21
-0
wallet.module.ts
Breeze.UI/src/app/wallet/wallet.module.ts
+1
-0
No files found.
Breeze.UI/src/app/app.module.ts
View file @
402229bd
...
@@ -18,6 +18,7 @@ import { GlobalService } from './shared/services/global.service';
...
@@ -18,6 +18,7 @@ import { GlobalService } from './shared/services/global.service';
import
{
SendComponent
}
from
'./wallet/send/send.component'
;
import
{
SendComponent
}
from
'./wallet/send/send.component'
;
import
{
ReceiveComponent
}
from
'./wallet/receive/receive.component'
;
import
{
ReceiveComponent
}
from
'./wallet/receive/receive.component'
;
import
{
TransactionDetailsComponent
}
from
'./wallet/transaction-details/transaction-details.component'
;
@
NgModule
({
@
NgModule
({
...
@@ -36,11 +37,13 @@ import { ReceiveComponent } from './wallet/receive/receive.component';
...
@@ -36,11 +37,13 @@ import { ReceiveComponent } from './wallet/receive/receive.component';
AppComponent
,
AppComponent
,
LoginComponent
,
LoginComponent
,
SendComponent
,
SendComponent
,
ReceiveComponent
ReceiveComponent
,
TransactionDetailsComponent
],
],
entryComponents
:
[
entryComponents
:
[
SendComponent
,
SendComponent
,
ReceiveComponent
ReceiveComponent
,
TransactionDetailsComponent
],
],
providers
:
[
ApiService
,
GlobalService
],
providers
:
[
ApiService
,
GlobalService
],
bootstrap
:
[
AppComponent
]
bootstrap
:
[
AppComponent
]
...
...
Breeze.UI/src/app/wallet/transaction-details/transaction-details.component.html
0 → 100644
View file @
402229bd
<div
id=
"modalDetail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal_detail"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<div
class=
"bubble"
><i
class=
"icon-settings"
></i></div>
</div>
<div
class=
"modal-body"
>
<h5
class=
"modal-title text-uppercase"
id=
"modalDetail"
>
Transaction Details
</h5>
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Type
</li>
<li
class=
"list-inline-item col-9 blockText"
>
{{ transaction.type }}
</li>
</ul>
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Amount
</li>
<li
class=
"list-inline-item col-9 blockText"
><strong
class=
"text-success"
>
{{transaction.amount | coinNotation }}
</strong></li>
</ul>
<!--<ul class="list-inline row">
<li class="list-inline-item col blockLabel">From</li>
<li class="list-inline-item col-9 blockText"><code>n4kVJQarwwdmsXDdgNnJHgBSpZ8MhSkNBx</code></li>
</ul>-->
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Date
</li>
<li
class=
"list-inline-item col-9 blockText"
><small>
{{ transaction.timestamp * 1000 | date:'medium' }}
</small></li>
</ul>
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Block
</li>
<li
class=
"list-inline-item col-9 blockText"
>
#{{ transaction.confirmedInBlock }}
</li>
</ul>
<ul
class=
"list-inline row"
>
<li
class=
"list-inline-item col blockLabel"
>
Transaction ID
</li>
<li
class=
"list-inline-item col-9 blockText blockID"
><code>
{{ transaction.id }}
</code></li>
</ul>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-lg btn-primary"
data-dismiss=
"modal"
aria-label=
"Close"
(
click
)="
activeModal
.
close
('
Close
click
')"
>
OK
</button>
</div>
</div>
</div>
</div>
Breeze.UI/src/app/wallet/transaction-details/transaction-details.component.scss
0 → 100644
View file @
402229bd
Breeze.UI/src/app/wallet/transaction-details/transaction-details.component.spec.ts
0 → 100644
View file @
402229bd
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
TransactionDetailsComponent
}
from
'./transaction-details.component'
;
describe
(
'TransactionDetailsComponent'
,
()
=>
{
let
component
:
TransactionDetailsComponent
;
let
fixture
:
ComponentFixture
<
TransactionDetailsComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
TransactionDetailsComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
TransactionDetailsComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should be created'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
Breeze.UI/src/app/wallet/transaction-details/transaction-details.component.ts
0 → 100644
View file @
402229bd
import
{
Component
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
NgbModal
,
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
Component
({
selector
:
'transaction-details'
,
templateUrl
:
'./transaction-details.component.html'
,
styleUrls
:
[
'./transaction-details.component.scss'
]
})
export
class
TransactionDetailsComponent
implements
OnInit
{
@
Input
()
transaction
;
constructor
(
public
activeModal
:
NgbActiveModal
)
{
}
ngOnInit
()
{
}
}
Breeze.UI/src/app/wallet/wallet.module.ts
View file @
402229bd
...
@@ -11,6 +11,7 @@ import {SharedModule} from '../shared/shared.module';
...
@@ -11,6 +11,7 @@ import {SharedModule} from '../shared/shared.module';
import
{
WalletRoutingModule
}
from
'./wallet-routing.module'
;
import
{
WalletRoutingModule
}
from
'./wallet-routing.module'
;
import
{
SidebarComponent
}
from
'./sidebar/sidebar.component'
;
import
{
SidebarComponent
}
from
'./sidebar/sidebar.component'
;
import
{
StatusBarComponent
}
from
'./status-bar/status-bar.component'
;
import
{
StatusBarComponent
}
from
'./status-bar/status-bar.component'
;
import
{
TransactionDetailsComponent
}
from
'./transaction-details/transaction-details.component'
;
@
NgModule
({
@
NgModule
({
imports
:
[
imports
:
[
...
...
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