Skip to content

Commit

Permalink
some chatbot modication
Browse files Browse the repository at this point in the history
hamdirhibi committed Mar 26, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7a216c7 commit 10c16e7
Showing 3 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions src/app/tab1/tab1.page.html
Original file line number Diff line number Diff line change
@@ -10,15 +10,26 @@

<ion-list lines="none" class="app-list">

<ion-item *ngFor="let chat of chatList" (click)="showConversationPage()">
<ion-avatar slot="start">
<ion-item
(click)="showConversationPage()">
<!-- <ion-avatar slot="start">
<img [src]="chat.user.avatar">
</ion-avatar>
<ion-label>
<h2>{{ chat.user.name }}</h2>
<p>{{ chat.message.snippet }}</p>
<p item-end class="text-ellipsis">{{ chat.message.created }}</p>
</ion-label>
</ion-label> -->
<img src="../../assets/img/chatbot.jpg" style="margin-top : 10em;">
</ion-item>
<ion-item style="text-align: center;color :salmon">
<button (click)="showConversationPage()" ion-button full style="width:100%;height : 50px ;">


<ion-icon name="chatboxes"></ion-icon>
Click here to chat
</button>

</ion-item>

</ion-list>
2 changes: 1 addition & 1 deletion src/app/welcomepage/welcomepage.page.ts
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ export class WelcomepagePage implements OnInit {

async ngOnInit() {
await this.sleep(3000);
this.router.navigate(['/signup']);
this.router.navigate(['/tabs/tabs/tab1']);

}
sleep(ms) {
Binary file added src/assets/img/chatbot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10c16e7

Please sign in to comment.