Commit 8c26cfb 1 parent 745c435 commit 8c26cfb Copy full SHA for 8c26cfb
File tree 1 file changed +10
-2
lines changed
src/renderer/components/general-settings
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,15 @@ export default defineComponent({
42
42
'' ,
43
43
'openLinkAfterPrompt' ,
44
44
'doNothing'
45
+ ] ,
46
+ includedDefaultPageNames : [
47
+ 'subscriptions' ,
48
+ 'subscribedChannels' ,
49
+ 'trending' ,
50
+ 'popular' ,
51
+ 'userPlaylists' ,
52
+ 'history' ,
53
+ 'settings'
45
54
]
46
55
}
47
56
} ,
@@ -62,8 +71,7 @@ export default defineComponent({
62
71
return this . $store . getters . getCheckForBlogPosts
63
72
} ,
64
73
defaultPages : function ( ) {
65
- // filter out default '/' route and routes with params
66
- return this . $router . getRoutes ( ) . filter ( ( route , i ) => i !== 0 && ! route . path . includes ( ':' ) )
74
+ return this . $router . getRoutes ( ) . filter ( ( route ) => this . includedDefaultPageNames . includes ( route . name ) )
67
75
} ,
68
76
defaultPageNames : function ( ) {
69
77
return this . defaultPages . map ( ( route ) => this . $t ( route . meta . title ) )
You can’t perform that action at this time.
0 commit comments