aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-20 13:53:51 +0100
committerChocobozzz <me@florianbigard.com>2019-03-20 13:53:51 +0100
commita55052c9baf2952795685d3b4e5348c8cb9da70d (patch)
treee967b99fa195b76bd1b1f8473f3861e3d60ea97b /client/src/app/+my-account/my-account.component.ts
parent7e73f07131a6738b299311448ab4491eb532838a (diff)
downloadPeerTube-a55052c9baf2952795685d3b4e5348c8cb9da70d.tar.gz
PeerTube-a55052c9baf2952795685d3b4e5348c8cb9da70d.tar.zst
PeerTube-a55052c9baf2952795685d3b4e5348c8cb9da70d.zip
Add my library section in menu
Diffstat (limited to 'client/src/app/+my-account/my-account.component.ts')
-rw-r--r--client/src/app/+my-account/my-account.component.ts27
1 files changed, 18 insertions, 9 deletions
diff --git a/client/src/app/+my-account/my-account.component.ts b/client/src/app/+my-account/my-account.component.ts
index f624ff505..d98d06f8e 100644
--- a/client/src/app/+my-account/my-account.component.ts
+++ b/client/src/app/+my-account/my-account.component.ts
@@ -21,23 +21,28 @@ export class MyAccountComponent {
21 children: [ 21 children: [
22 { 22 {
23 label: this.i18n('My channels'), 23 label: this.i18n('My channels'),
24 routerLink: '/my-account/video-channels' 24 routerLink: '/my-account/video-channels',
25 iconName: 'folder'
25 }, 26 },
26 { 27 {
27 label: this.i18n('My videos'), 28 label: this.i18n('My videos'),
28 routerLink: '/my-account/videos' 29 routerLink: '/my-account/videos',
30 iconName: 'videos'
29 }, 31 },
30 { 32 {
31 label: this.i18n('My playlists'), 33 label: this.i18n('My playlists'),
32 routerLink: '/my-account/video-playlists' 34 routerLink: '/my-account/video-playlists',
35 iconName: 'playlists'
33 }, 36 },
34 { 37 {
35 label: this.i18n('My subscriptions'), 38 label: this.i18n('My subscriptions'),
36 routerLink: '/my-account/subscriptions' 39 routerLink: '/my-account/subscriptions',
40 iconName: 'subscriptions'
37 }, 41 },
38 { 42 {
39 label: this.i18n('My history'), 43 label: this.i18n('My history'),
40 routerLink: '/my-account/history/videos' 44 routerLink: '/my-account/history/videos',
45 iconName: 'history'
41 } 46 }
42 ] 47 ]
43 } 48 }
@@ -45,7 +50,8 @@ export class MyAccountComponent {
45 if (this.isVideoImportEnabled()) { 50 if (this.isVideoImportEnabled()) {
46 libraryEntries.children.push({ 51 libraryEntries.children.push({
47 label: 'My imports', 52 label: 'My imports',
48 routerLink: '/my-account/video-imports' 53 routerLink: '/my-account/video-imports',
54 iconName: 'cloud-download'
49 }) 55 })
50 } 56 }
51 57
@@ -54,15 +60,18 @@ export class MyAccountComponent {
54 children: [ 60 children: [
55 { 61 {
56 label: this.i18n('Muted accounts'), 62 label: this.i18n('Muted accounts'),
57 routerLink: '/my-account/blocklist/accounts' 63 routerLink: '/my-account/blocklist/accounts',
64 iconName: 'user'
58 }, 65 },
59 { 66 {
60 label: this.i18n('Muted instances'), 67 label: this.i18n('Muted instances'),
61 routerLink: '/my-account/blocklist/servers' 68 routerLink: '/my-account/blocklist/servers',
69 iconName: 'server'
62 }, 70 },
63 { 71 {
64 label: this.i18n('Ownership changes'), 72 label: this.i18n('Ownership changes'),
65 routerLink: '/my-account/ownership' 73 routerLink: '/my-account/ownership',
74 iconName: 'im-with-her'
66 } 75 }
67 ] 76 ]
68 } 77 }