Fix spell errors
This commit is contained in:
parent
42934f4299
commit
b808c84b55
2 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ const Search = {
|
|||
statuses: [],
|
||||
media: [],
|
||||
hashtags: [],
|
||||
currenResultTab: 'statuses',
|
||||
currentResultTab: 'statuses',
|
||||
preferredTab : 'statuses',
|
||||
|
||||
statusesOffset: 0,
|
||||
|
@ -120,7 +120,7 @@ const Search = {
|
|||
? [searchType]
|
||||
: ['statuses', 'media', 'accounts', 'hashtags']
|
||||
|
||||
let oldStasusesLength = this.statuses.length
|
||||
let oldStatusesLength = this.statuses.length
|
||||
let oldMediaLength = this.media.length
|
||||
|
||||
let skipMediaSearch = !this.canSearchMediaPosts
|
||||
|
@ -162,7 +162,7 @@ const Search = {
|
|||
this.hashtags = this.hashtags.concat(data.hashtags)
|
||||
|
||||
if (isNewSearch) {
|
||||
this.currenResultTab = this.getActiveTab()
|
||||
this.currentResultTab = this.getActiveTab()
|
||||
if (searchType === 'statuses' && data.statuses.length === 0) {
|
||||
// safe to assume that there are no media posts
|
||||
skipMediaSearch = true
|
||||
|
@ -174,7 +174,7 @@ const Search = {
|
|||
// Offset from whatever we already have
|
||||
this.statusesOffset = this.statuses.length
|
||||
// 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') {
|
||||
this.mediaOffset = this.media.length
|
||||
|
@ -202,7 +202,7 @@ const Search = {
|
|||
return ` (${length})`
|
||||
},
|
||||
onResultTabSwitch (key) {
|
||||
this.currenResultTab = key
|
||||
this.currentResultTab = key
|
||||
this.preferredTab = key
|
||||
this.loading = false
|
||||
},
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<tab-switcher
|
||||
ref="tabSwitcher"
|
||||
:on-switch="onResultTabSwitch"
|
||||
:active-tab="currenResultTab"
|
||||
:active-tab="currentResultTab"
|
||||
>
|
||||
<span
|
||||
key="statuses"
|
||||
|
@ -71,7 +71,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div v-if="currenResultTab === 'statuses'">
|
||||
<div v-if="currentResultTab === 'statuses'">
|
||||
<Conversation
|
||||
v-for="status in visibleStatuses"
|
||||
:key="status.id"
|
||||
|
@ -107,7 +107,7 @@
|
|||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="currenResultTab === 'media'">
|
||||
<div v-if="currentResultTab === 'media'">
|
||||
<Conversation
|
||||
v-for="media in visibleMedia"
|
||||
:key="media.id"
|
||||
|
@ -143,7 +143,7 @@
|
|||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="currenResultTab === 'people'">
|
||||
<div v-else-if="currentResultTab === 'people'">
|
||||
<div
|
||||
v-if="users.length === 0 && !loading && loadedInitially"
|
||||
class="search-result-heading"
|
||||
|
@ -157,7 +157,7 @@
|
|||
class="list-item search-result"
|
||||
/>
|
||||
</div>
|
||||
<div v-else-if="currenResultTab === 'hashtags'">
|
||||
<div v-else-if="currentResultTab === 'hashtags'">
|
||||
<div
|
||||
v-if="hashtags.length === 0 && !loading && loadedInitially"
|
||||
class="search-result-heading"
|
||||
|
|
Loading…
Reference in a new issue