Skip to content

Commit

Permalink
go to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelcovaci committed Jun 27, 2020
1 parent 3ecdef3 commit f040a33
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

</mat-card-content>
<mat-card-actions>
<button mat-button>LIKE</button>
<button mat-button>SHARE</button>
<img src='../../assets/twitter2.svg' style="width: 40px"/>
<a mat-button href="{{this.profileLink}}" target="_blank"> Go to profile</a>
</mat-card-actions>
</mat-card>
</div>
Expand Down
2 changes: 2 additions & 0 deletions twittop/src/app/twitter-profile/twitter-profile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class TwitterProfileComponent implements OnInit, OnDestroy {
public userTweets: Array<any>;
public stringValue = 'Fake';
public profileDataAll: any = null;
public profileLink: string = '';

constructor(private twitterService: TwitterService,
private flaskServer: FlaskServerService,
Expand Down Expand Up @@ -115,6 +116,7 @@ export class TwitterProfileComponent implements OnInit, OnDestroy {
this.created_at = moment(this.created_at, 'YYYYMMDD').fromNow();
this.location = profile.location;
this.verified = profile.verified;
this.profileLink = 'https://twitter.com/' + this.username;


}
Expand Down
1 change: 1 addition & 0 deletions twittop/src/assets/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions twittop/src/assets/twitter2.svg
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 f040a33

Please sign in to comment.