Skip to content

Commit

Permalink
Remove old videos path hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Dec 23, 2024
1 parent 40f4c30 commit 2215814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2 i18n>PASSWORD</h2>

<div class="pt-two-cols mt-5" *ngIf="user.pluginAuth === null"> <!-- two factor auth grid -->
<div class="title-col">
<h2 i18n>Two-factor authentication</h2>
<h2 i18n>TWO-FACTOR AUTHENTICATION</h2>
</div>

<div class="content-col">
Expand Down
20 changes: 5 additions & 15 deletions client/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,27 +333,17 @@ export class AppComponent implements OnInit, AfterViewInit {
new Hotkey('g o', () => {
this.router.navigate([ '/videos/overview' ])
return false
}, $localize`Go to the discover videos page`),
}, $localize`Go to the "Discover videos" page`),

new Hotkey('g t', () => {
this.router.navigate([ '/videos/trending' ])
new Hotkey('g v', () => {
this.router.navigate([ '/videos/browse' ])
return false
}, $localize`Go to the trending videos page`),

new Hotkey('g r', () => {
this.router.navigate([ '/videos/recently-added' ])
return false
}, $localize`Go to the recently added videos page`),

new Hotkey('g l', () => {
this.router.navigate([ '/videos/local' ])
return false
}, $localize`Go to the local videos page`),
}, $localize`Go to the "Browse videos" page`),

new Hotkey('g u', () => {
this.router.navigate([ '/videos/upload' ])
return false
}, $localize`Go to the videos upload page`)
}, $localize`Go to the "Publish video" page`)
])
}

Expand Down

0 comments on commit 2215814

Please sign in to comment.