Merge remote-tracking branch 'origin/develop' into setttingssync
This commit is contained in:
commit
44ae68b025
22 changed files with 180 additions and 76 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import ldEscape from 'lodash/escape'
|
||||
import isEqual from 'lodash/isEqual'
|
||||
import merge from 'lodash/merge'
|
||||
import ldUnescape from 'lodash/unescape'
|
||||
|
|
@ -160,6 +161,9 @@ export default {
|
|||
this.$store.dispatch('fetchUserRelationship', this.user.id)
|
||||
},
|
||||
computed: {
|
||||
escapedNewBio() {
|
||||
return ldEscape(this.newBio).replace(/\n/g, '<br>')
|
||||
},
|
||||
somethingToSave() {
|
||||
if (this.newName !== this.user.name_unescaped) return true
|
||||
if (this.newBio !== ldUnescape(this.user.description)) return true
|
||||
|
|
@ -427,7 +431,7 @@ export default {
|
|||
zoomAvatar() {
|
||||
const attachment = {
|
||||
url: this.user.profile_image_url_original,
|
||||
mimetype: 'image',
|
||||
type: 'image',
|
||||
}
|
||||
useMediaViewerStore().setMedia([attachment])
|
||||
useMediaViewerStore().setCurrentMedia(attachment)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue