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
cd4b1d46
Commit
cd4b1d46
authored
Jul 07, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logout confirmation
parent
08e79797
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
82 additions
and
4 deletions
+82
-4
app.module.ts
Breeze.UI/src/app/app.module.ts
+4
-1
logout-confirmation.component.css
...let/logout-confirmation/logout-confirmation.component.css
+0
-0
logout-confirmation.component.html
...et/logout-confirmation/logout-confirmation.component.html
+25
-0
logout-confirmation.component.spec.ts
...logout-confirmation/logout-confirmation.component.spec.ts
+25
-0
logout-confirmation.component.ts
...llet/logout-confirmation/logout-confirmation.component.ts
+22
-0
menu.component.ts
Breeze.UI/src/app/wallet/menu/menu.component.ts
+6
-3
No files found.
Breeze.UI/src/app/app.module.ts
View file @
cd4b1d46
...
@@ -19,6 +19,7 @@ import { GlobalService } from './shared/services/global.service';
...
@@ -19,6 +19,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'
;
import
{
TransactionDetailsComponent
}
from
'./wallet/transaction-details/transaction-details.component'
;
import
{
LogoutConfirmationComponent
}
from
'./wallet/logout-confirmation/logout-confirmation.component'
;
@
NgModule
({
@
NgModule
({
...
@@ -36,6 +37,7 @@ import { TransactionDetailsComponent } from './wallet/transaction-details/transa
...
@@ -36,6 +37,7 @@ import { TransactionDetailsComponent } from './wallet/transaction-details/transa
declarations
:
[
declarations
:
[
AppComponent
,
AppComponent
,
LoginComponent
,
LoginComponent
,
LogoutConfirmationComponent
,
SendComponent
,
SendComponent
,
ReceiveComponent
,
ReceiveComponent
,
TransactionDetailsComponent
TransactionDetailsComponent
...
@@ -43,7 +45,8 @@ import { TransactionDetailsComponent } from './wallet/transaction-details/transa
...
@@ -43,7 +45,8 @@ import { TransactionDetailsComponent } from './wallet/transaction-details/transa
entryComponents
:
[
entryComponents
:
[
SendComponent
,
SendComponent
,
ReceiveComponent
,
ReceiveComponent
,
TransactionDetailsComponent
TransactionDetailsComponent
,
LogoutConfirmationComponent
],
],
providers
:
[
ApiService
,
GlobalService
],
providers
:
[
ApiService
,
GlobalService
],
bootstrap
:
[
AppComponent
]
bootstrap
:
[
AppComponent
]
...
...
Breeze.UI/src/app/wallet/logout-confirmation/logout-confirmation.component.css
0 → 100644
View file @
cd4b1d46
Breeze.UI/src/app/wallet/logout-confirmation/logout-confirmation.component.html
0 → 100644
View file @
cd4b1d46
<div
id=
"modalLogout"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal_logout"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div>
<div
class=
"modal-header"
>
<div
class=
"bubble"
><i
class=
"icon-download"
></i></div>
</div>
<div
class=
"modal-body"
>
<h5
class=
"modal-title text-uppercase"
id=
"modalReceive"
>
Logout
</h5>
<form>
<div
class=
"form-group clearfix"
>
<label
class=
"float-left"
>
Are you sure you want to logout?
</label>
</div>
<div>
<button
type=
"button"
class=
"btn btn-lg btn-primary float-left"
data-dismiss=
"modal"
aria-label=
"Logout"
(
click
)="
onLogout
()"
>
Yes
</button>
<button
type=
"button"
class=
"btn btn-lg btn-primary float-right"
data-dismiss=
"modal"
aria-label=
"Close"
(
click
)="
activeModal
.
close
('
Close
click
')"
>
Cancel
</button>
</div>
<br>
</form>
</div>
<div
class=
"modal-footer"
>
<p></p>
</div>
</div>
</div>
</div>
Breeze.UI/src/app/wallet/logout-confirmation/logout-confirmation.component.spec.ts
0 → 100644
View file @
cd4b1d46
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
LogoutConfirmationComponent
}
from
'./logout-confirmation.component'
;
describe
(
'LogoutConfirmationComponent'
,
()
=>
{
let
component
:
LogoutConfirmationComponent
;
let
fixture
:
ComponentFixture
<
LogoutConfirmationComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
LogoutConfirmationComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
LogoutConfirmationComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should be created'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
Breeze.UI/src/app/wallet/logout-confirmation/logout-confirmation.component.ts
0 → 100644
View file @
cd4b1d46
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Router
}
from
'@angular/router'
;
import
{
NgbModal
,
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
@
Component
({
selector
:
'app-logout-confirmation'
,
templateUrl
:
'./logout-confirmation.component.html'
,
styleUrls
:
[
'./logout-confirmation.component.css'
]
})
export
class
LogoutConfirmationComponent
implements
OnInit
{
constructor
(
private
activeModal
:
NgbActiveModal
,
private
router
:
Router
)
{
}
ngOnInit
()
{
}
private
onLogout
()
{
this
.
activeModal
.
close
();
this
.
router
.
navigate
([
'/login'
]);
}
}
Breeze.UI/src/app/wallet/menu/menu.component.ts
View file @
cd4b1d46
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
Router
}
from
'@angular/router'
;
import
{
NgbModal
,
NgbActiveModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
LogoutConfirmationComponent
}
from
'../logout-confirmation/logout-confirmation.component'
;
@
Component
({
@
Component
({
selector
:
'app-menu'
,
selector
:
'app-menu'
,
...
@@ -7,9 +10,9 @@ import { Router } from '@angular/router';
...
@@ -7,9 +10,9 @@ import { Router } from '@angular/router';
styleUrls
:
[
'./menu.component.css'
],
styleUrls
:
[
'./menu.component.css'
],
})
})
export
class
MenuComponent
{
export
class
MenuComponent
{
constructor
(
private
router
:
Router
)
{}
constructor
(
private
modalService
:
NgbModal
)
{}
private
logOut
()
{
private
logOut
()
{
this
.
router
.
navigate
([
'/login'
]
);
const
modalRef
=
this
.
modalService
.
open
(
LogoutConfirmationComponent
);
}
}
}
}
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