Skip to content

Commit 30b71f2

Browse files
committed
Remove settings page as bookmarkable, remove unnecessary async & null access operators
1 parent 5ddfbcc commit 30b71f2

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/renderer/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export default defineComponent({
194194
this.grabAllProfiles(this.$t('Profile.All Channels')).then(async () => {
195195
this.grabHistory()
196196
this.grabAllPlaylists()
197-
this.grabPageBookmarks().then(async () => {
197+
this.grabPageBookmarks().then(() => {
198198
this.pageBookmarksAvailable = true
199199
})
200200
this.grabAllSubscriptions()

src/renderer/components/ft-input/ft-input.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default defineComponent({
8585
isPointerInList: false,
8686
keyboardSelectedOptionIndex: -1,
8787
},
88-
visibleDataList: this.dataList?.slice(0, MAX_VISIBLE_LIST_ITEMS),
88+
visibleDataList: this.dataList.slice(0, MAX_VISIBLE_LIST_ITEMS),
8989
// This button should be invisible on app start
9090
// As the text input box should be empty
9191
clearTextButtonExisting: false,
@@ -310,13 +310,13 @@ export default defineComponent({
310310
this.searchState.selectedOption = -1
311311
this.searchState.keyboardSelectedOptionIndex = -1
312312
if (this.inputData === '') {
313-
this.visibleDataList = this.dataList?.slice(0, MAX_VISIBLE_LIST_ITEMS)
313+
this.visibleDataList = this.dataList.slice(0, MAX_VISIBLE_LIST_ITEMS)
314314
return
315315
}
316316
// get list of items that match input
317317
const lowerCaseInputData = this.inputData.toLowerCase()
318318

319-
this.visibleDataList = this.dataList?.slice(0, MAX_VISIBLE_LIST_ITEMS).filter(x => {
319+
this.visibleDataList = this.dataList.slice(0, MAX_VISIBLE_LIST_ITEMS).filter(x => {
320320
if (x.name) {
321321
return x.name.toLowerCase().indexOf(lowerCaseInputData) !== -1
322322
}

src/renderer/components/page-bookmark-prompt/page-bookmark-prompt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { mapActions } from 'vuex'
33
import FtFlexBox from '../ft-flex-box/ft-flex-box.vue'
44
import FtPrompt from '../ft-prompt/ft-prompt.vue'
55
import FtButton from '../ft-button/ft-button.vue'
6-
import FtInput from '../../components/ft-input/ft-input.vue'
6+
import FtInput from '../ft-input/ft-input.vue'
77
import packageDetails from '../../../../package.json'
88
import { showToast } from '../../helpers/utils'
99

src/renderer/components/top-nav/top-nav.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default defineComponent({
5454
'Watch',
5555
'Hashtag',
5656
'Post',
57-
'Settings' // for linkable settings sections
5857
],
5958
lastSuggestionQuery: ''
6059
}

0 commit comments

Comments
 (0)