Skip to content

Commit

Permalink
Trib 106 add button to view connection profile (#101)
Browse files Browse the repository at this point in the history
* added view profile button

* removed comments, and added profile button navigation

* created initial routing module

---------

Co-authored-by: Johnathan James <[email protected]>
  • Loading branch information
downbythesieh and haxwell authored Aug 7, 2024
1 parent 7147748 commit 66edc3c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ConnectionDetailsPage } from './connection-details.page';

const routes: Routes = [
{
path: '',
component: ConnectionDetailsPage
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ConnectionDetailsRoutingModule { }
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<ion-header>
<ion-toolbar>
<ion-title>connection_details</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<div>
<p>Details coming soon</p>
</div>
<ion-toolbar>
<ion-title>connection_details</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<div>
<p>Details coming soon</p>
</div>
<ion-button (click)="onCancelBtnClick()">cancel</ion-button>
<ion-button (click)="goToUserProfile()">View Profile</ion-button>
<ion-button (click)="onRemoveBtnClick()">remove</ion-button>
</ion-content>
</ion-content>
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,14 @@ export class ConnectionDetailsPage implements OnInit{

ngOnInit() {}

goToUserProfile() {
this._router.navigate(['/profile']);
}

onCancelBtnClick() {
this._router.navigate(['/connect/list-connections']);
}

// getCancelBtnClickFunc() {
// const self = this;
// return () => {
// self.navigateTo('/list-connections');
// }
// }


onRemoveBtnClick() {
let self = this;
this._alertService.show({
Expand Down

0 comments on commit 66edc3c

Please sign in to comment.