File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { Observable } from 'rxjs';
1818import { map } from 'rxjs/operators' ;
1919import { Bookmark } from './core/model/bookmark' ;
2020import { Router } from '@angular/router' ;
21+ import { AddToHistoryService } from './core/user/add-to-history.service' ;
2122
2223@Component ( {
2324 selector : 'app-root' ,
@@ -49,7 +50,8 @@ export class AppComponent implements OnInit {
4950 private loginDialog : MatDialog ,
5051 private cookieService : CookieService ,
5152 private feedbackService : FeedbackService ,
52- protected router : Router ) {
53+ protected router : Router ,
54+ private addToHistoryService : AddToHistoryService ) {
5355 this . innerWidth = 100 ;
5456 }
5557
@@ -206,6 +208,7 @@ export class AppComponent implements OnInit {
206208 this . router . navigate ( link , {
207209 state : { bookmark : bookmark }
208210 } ) ;
211+ this . addToHistoryService . promoteInHistoryIfLoggedIn ( this . userIsLoggedIn , bookmark ) ;
209212 }
210213
211214 goToMainLink ( bookmark : Bookmark ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " Codever" ,
3- "version" : " 4.8.0 " ,
3+ "version" : " 4.8.1 " ,
44 "description" : " Codever - bookmarks and snippets manager for developers & co" ,
55 "scripts" : {
66 "test" : " echo \" Error: no test specified\" && exit 1" ,
You can’t perform that action at this time.
0 commit comments