Merge remote-tracking branch 'upstream/develop' into neckbeard
This commit is contained in:
commit
dc852a83b5
|
@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Follows/Followers tabs on user profiles now display the content properly.
|
||||||
|
|
||||||
|
## [2.2.2] - 2020-12-22
|
||||||
### Added
|
### Added
|
||||||
- Mouseover titles for emojis in reaction picker
|
- Mouseover titles for emojis in reaction picker
|
||||||
- Support to input emoji into the search box in reaction picker
|
- Support to input emoji into the search box in reaction picker
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
"babel-plugin-lodash": "^3.3.4",
|
"babel-plugin-lodash": "^3.3.4",
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
"chalk": "^1.1.3",
|
"chalk": "^1.1.3",
|
||||||
"chromedriver": "^2.21.2",
|
"chromedriver": "^87.0.1",
|
||||||
"connect-history-api-fallback": "^1.1.0",
|
"connect-history-api-fallback": "^1.1.0",
|
||||||
"cross-spawn": "^4.0.2",
|
"cross-spawn": "^4.0.2",
|
||||||
"css-loader": "^0.28.0",
|
"css-loader": "^0.28.0",
|
||||||
|
|
|
@ -29,12 +29,8 @@ const withLoadMore = ({
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
bottomedOut: false,
|
bottomedOut: false,
|
||||||
error: false
|
error: false,
|
||||||
}
|
entries: []
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
entries () {
|
|
||||||
return select(this.$props, this.$store) || []
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
@ -48,6 +44,11 @@ const withLoadMore = ({
|
||||||
destroy && destroy(this.$props, this.$store)
|
destroy && destroy(this.$props, this.$store)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// Entries is not a computed because computed can't track the dynamic
|
||||||
|
// selector for changes and won't trigger after fetch.
|
||||||
|
updateEntries () {
|
||||||
|
this.entries = select(this.$props, this.$store) || []
|
||||||
|
},
|
||||||
fetchEntries () {
|
fetchEntries () {
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
@ -61,6 +62,9 @@ const withLoadMore = ({
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.error = true
|
this.error = true
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
this.updateEntries()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
scrollLoad (e) {
|
scrollLoad (e) {
|
||||||
|
|
Loading…
Reference in New Issue