Fix spell errors

This commit is contained in:
itepechi 2023-11-04 05:21:43 +09:00
parent 42934f4299
commit b808c84b55
2 changed files with 10 additions and 10 deletions

View File

@ -34,7 +34,7 @@ const Search = {
statuses: [], statuses: [],
media: [], media: [],
hashtags: [], hashtags: [],
currenResultTab: 'statuses', currentResultTab: 'statuses',
preferredTab : 'statuses', preferredTab : 'statuses',
statusesOffset: 0, statusesOffset: 0,
@ -120,7 +120,7 @@ const Search = {
? [searchType] ? [searchType]
: ['statuses', 'media', 'accounts', 'hashtags'] : ['statuses', 'media', 'accounts', 'hashtags']
let oldStasusesLength = this.statuses.length let oldStatusesLength = this.statuses.length
let oldMediaLength = this.media.length let oldMediaLength = this.media.length
let skipMediaSearch = !this.canSearchMediaPosts let skipMediaSearch = !this.canSearchMediaPosts
@ -162,7 +162,7 @@ const Search = {
this.hashtags = this.hashtags.concat(data.hashtags) this.hashtags = this.hashtags.concat(data.hashtags)
if (isNewSearch) { if (isNewSearch) {
this.currenResultTab = this.getActiveTab() this.currentResultTab = this.getActiveTab()
if (searchType === 'statuses' && data.statuses.length === 0) { if (searchType === 'statuses' && data.statuses.length === 0) {
// safe to assume that there are no media posts // safe to assume that there are no media posts
skipMediaSearch = true skipMediaSearch = true
@ -174,7 +174,7 @@ const Search = {
// Offset from whatever we already have // Offset from whatever we already have
this.statusesOffset = this.statuses.length this.statusesOffset = this.statuses.length
// Because the amount of new statuses can actually be zero, compare to old length instead // Because the amount of new statuses can actually be zero, compare to old length instead
this.lastStatusFetchCount = this.statuses.length - oldStasusesLength this.lastStatusFetchCount = this.statuses.length - oldStatusesLength
} }
if (searchType === 'media') { if (searchType === 'media') {
this.mediaOffset = this.media.length this.mediaOffset = this.media.length
@ -202,7 +202,7 @@ const Search = {
return ` (${length})` return ` (${length})`
}, },
onResultTabSwitch (key) { onResultTabSwitch (key) {
this.currenResultTab = key this.currentResultTab = key
this.preferredTab = key this.preferredTab = key
this.loading = false this.loading = false
}, },

View File

@ -48,7 +48,7 @@
<tab-switcher <tab-switcher
ref="tabSwitcher" ref="tabSwitcher"
:on-switch="onResultTabSwitch" :on-switch="onResultTabSwitch"
:active-tab="currenResultTab" :active-tab="currentResultTab"
> >
<span <span
key="statuses" key="statuses"
@ -71,7 +71,7 @@
</div> </div>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<div v-if="currenResultTab === 'statuses'"> <div v-if="currentResultTab === 'statuses'">
<Conversation <Conversation
v-for="status in visibleStatuses" v-for="status in visibleStatuses"
:key="status.id" :key="status.id"
@ -107,7 +107,7 @@
</h4> </h4>
</div> </div>
</div> </div>
<div v-if="currenResultTab === 'media'"> <div v-if="currentResultTab === 'media'">
<Conversation <Conversation
v-for="media in visibleMedia" v-for="media in visibleMedia"
:key="media.id" :key="media.id"
@ -143,7 +143,7 @@
</h4> </h4>
</div> </div>
</div> </div>
<div v-else-if="currenResultTab === 'people'"> <div v-else-if="currentResultTab === 'people'">
<div <div
v-if="users.length === 0 && !loading && loadedInitially" v-if="users.length === 0 && !loading && loadedInitially"
class="search-result-heading" class="search-result-heading"
@ -157,7 +157,7 @@
class="list-item search-result" class="list-item search-result"
/> />
</div> </div>
<div v-else-if="currenResultTab === 'hashtags'"> <div v-else-if="currentResultTab === 'hashtags'">
<div <div
v-if="hashtags.length === 0 && !loading && loadedInitially" v-if="hashtags.length === 0 && !loading && loadedInitially"
class="search-result-heading" class="search-result-heading"