File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { Observable } from 'rxjs';
18
18
import { map } from 'rxjs/operators' ;
19
19
import { Bookmark } from './core/model/bookmark' ;
20
20
import { Router } from '@angular/router' ;
21
+ import { AddToHistoryService } from './core/user/add-to-history.service' ;
21
22
22
23
@Component ( {
23
24
selector : 'app-root' ,
@@ -49,7 +50,8 @@ export class AppComponent implements OnInit {
49
50
private loginDialog : MatDialog ,
50
51
private cookieService : CookieService ,
51
52
private feedbackService : FeedbackService ,
52
- protected router : Router ) {
53
+ protected router : Router ,
54
+ private addToHistoryService : AddToHistoryService ) {
53
55
this . innerWidth = 100 ;
54
56
}
55
57
@@ -206,6 +208,7 @@ export class AppComponent implements OnInit {
206
208
this . router . navigate ( link , {
207
209
state : { bookmark : bookmark }
208
210
} ) ;
211
+ this . addToHistoryService . promoteInHistoryIfLoggedIn ( this . userIsLoggedIn , bookmark ) ;
209
212
}
210
213
211
214
goToMainLink ( bookmark : Bookmark ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Codever" ,
3
- "version" : " 4.8.0 " ,
3
+ "version" : " 4.8.1 " ,
4
4
"description" : " Codever - bookmarks and snippets manager for developers & co" ,
5
5
"scripts" : {
6
6
"test" : " echo \" Error: no test specified\" && exit 1" ,
You can’t perform that action at this time.
0 commit comments