Skip to content

Commit e66ef42

Browse files
committed
move up in history when clicking in quick history links access
1 parent be980fc commit e66ef42

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

frontend/src/app/app.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { Observable } from 'rxjs';
1818
import { map } from 'rxjs/operators';
1919
import { Bookmark } from './core/model/bookmark';
2020
import { 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) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)