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
7c08b643
Commit
7c08b643
authored
Sep 26, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Stratis wallet section
parent
d9cf0208
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
10 deletions
+29
-10
sidebar.component.html
Breeze.UI/src/app/wallet/sidebar/sidebar.component.html
+7
-6
sidebar.component.ts
Breeze.UI/src/app/wallet/sidebar/sidebar.component.ts
+14
-2
wallet-routing.module.ts
Breeze.UI/src/app/wallet/wallet-routing.module.ts
+8
-2
No files found.
Breeze.UI/src/app/wallet/sidebar/sidebar.component.html
View file @
7c08b643
<!--
SIDEBAR
-->
<!--
sidebar
-->
<aside
id=
"sidebar"
>
<aside
id=
"sidebar"
>
<!-- menu-->
<ul
class=
"list-unstyled menu"
>
<ul
class=
"list-unstyled menu"
>
<li
class=
"active"
>
<li
class=
"active"
(
click
)="
loadBitcoinWallet
()"
>
<
!--<a href="#">-->
<img
src=
"../../../assets/images/ico_bitcoin.svg"
alt=
"Bitcoin"
>
<!--</a>--
>
<
img
src=
"../../../assets/images/ico_bitcoin.svg"
alt=
"Bitcoin"
>
<span
class=
"bar"
></span>
<span
class=
"bar"
></span>
</li>
</li>
<
!--<li
>
<
li
(
click
)="
loadStratisWallet
()"
>
<
a href="#"><img src="../../../assets/images/ico_stratis.svg" alt="Stratis"></a
>
<
img
src=
"../../../assets/images/ico_stratis.svg"
alt=
"Stratis"
>
<span
class=
"bar"
></span>
<span
class=
"bar"
></span>
</li>
-->
</li>
</ul>
</ul>
<!-- /menu-->
<!-- /menu-->
<ul
class=
"list-unstyled second"
>
<ul
class=
"list-unstyled second"
>
...
...
Breeze.UI/src/app/wallet/sidebar/sidebar.component.ts
View file @
7c08b643
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
NgbModal
,
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbModal
,
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
LogoutConfirmationComponent
}
from
'../logout-confirmation/logout-confirmation.component'
;
import
{
LogoutConfirmationComponent
}
from
'../logout-confirmation/logout-confirmation.component'
;
import
{
Router
}
from
'@angular/router'
;
import
{
GlobalService
}
from
'../../shared/services/global.service'
;
@
Component
({
@
Component
({
selector
:
'sidebar'
,
selector
:
'sidebar'
,
...
@@ -9,13 +12,22 @@ import { LogoutConfirmationComponent } from '../logout-confirmation/logout-confi
...
@@ -9,13 +12,22 @@ import { LogoutConfirmationComponent } from '../logout-confirmation/logout-confi
})
})
export
class
SidebarComponent
implements
OnInit
{
export
class
SidebarComponent
implements
OnInit
{
constructor
(
private
modalService
:
NgbModal
)
{
}
constructor
(
private
globalService
:
GlobalService
,
private
router
:
Router
,
private
modalService
:
NgbModal
)
{
}
ngOnInit
()
{
ngOnInit
()
{
}
}
private
loadBitcoinWallet
()
{
this
.
globalService
.
setCoinName
(
"Bitcoin"
);
this
.
router
.
navigate
([
'/wallet'
]);
}
private
loadStratisWallet
()
{
this
.
globalService
.
setCoinName
(
"Stratis"
);
this
.
router
.
navigate
([
'/wallet/stratis-wallet'
]);
}
private
logOut
()
{
private
logOut
()
{
const
modalRef
=
this
.
modalService
.
open
(
LogoutConfirmationComponent
);
const
modalRef
=
this
.
modalService
.
open
(
LogoutConfirmationComponent
);
}
}
}
}
Breeze.UI/src/app/wallet/wallet-routing.module.ts
View file @
7c08b643
...
@@ -8,14 +8,20 @@ import { HistoryComponent } from './history/history.component';
...
@@ -8,14 +8,20 @@ import { HistoryComponent } from './history/history.component';
import
{
DashboardComponent
}
from
'./dashboard/dashboard.component'
;
import
{
DashboardComponent
}
from
'./dashboard/dashboard.component'
;
const
routes
:
Routes
=
[
const
routes
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'wallet'
,
pathMatch
:
'full'
},
{
path
:
''
,
component
:
WalletComponent
,
{
path
:
'wallet'
,
component
:
WalletComponent
,
children
:
[
children
:
[
{
path
:
''
,
redirectTo
:
'dashboard'
,
pathMatch
:
'full'
},
{
path
:
''
,
redirectTo
:
'dashboard'
,
pathMatch
:
'full'
},
{
path
:
'dashboard'
,
component
:
DashboardComponent
},
{
path
:
'dashboard'
,
component
:
DashboardComponent
},
{
path
:
'history'
,
component
:
HistoryComponent
}
{
path
:
'history'
,
component
:
HistoryComponent
}
]
]
},
},
{
path
:
'stratis-wallet'
,
component
:
WalletComponent
,
children
:
[
{
path
:
''
,
redirectTo
:
'dashboard'
,
pathMatch
:
'full'
},
{
path
:
'dashboard'
,
component
:
DashboardComponent
},
{
path
:
'history'
,
component
:
HistoryComponent
}
]
}
];
];
@
NgModule
({
@
NgModule
({
...
...
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