forked from AkkomaGang/akkoma-fe
Merge branch 'develop' into 'fix/timeline-bar-clickables-offset'
# Conflicts: # CHANGELOG.md
This commit is contained in:
commit
a2f1ad93f5
15 changed files with 105 additions and 108 deletions
|
@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- Fixed custom emoji not working in profile field names
|
- Fixed custom emoji not working in profile field names
|
||||||
- Fixed pinned statuses not appearing in user profiles
|
- Fixed pinned statuses not appearing in user profiles
|
||||||
- Fixed some elements not being keyboard navigation friendly
|
- Fixed some elements not being keyboard navigation friendly
|
||||||
|
- Fixed error handling when updating various profile images
|
||||||
- Fixed your latest chat messages disappearing when closing chat view and opening it again during the same session
|
- Fixed your latest chat messages disappearing when closing chat view and opening it again during the same session
|
||||||
- Fixed custom emoji not showing in poll options before voting
|
- Fixed custom emoji not showing in poll options before voting
|
||||||
|
|
||||||
|
@ -25,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- Errors when fetching are now shown with popup errors instead of "Error fetching updates" in panel headers
|
- Errors when fetching are now shown with popup errors instead of "Error fetching updates" in panel headers
|
||||||
- Made reply/fav/repeat etc buttons easier to hit
|
- Made reply/fav/repeat etc buttons easier to hit
|
||||||
- Adjusted timeline menu clickable area to match the visible button
|
- Adjusted timeline menu clickable area to match the visible button
|
||||||
|
- Moved external source link from status heading to the ellipsis menu
|
||||||
- Disabled horizontal textarea resize
|
- Disabled horizontal textarea resize
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,8 @@ import {
|
||||||
faBookmark,
|
faBookmark,
|
||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
faThumbtack,
|
faThumbtack,
|
||||||
faShareAlt
|
faShareAlt,
|
||||||
|
faExternalLinkAlt
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
import {
|
import {
|
||||||
faBookmark as faBookmarkReg
|
faBookmark as faBookmarkReg
|
||||||
|
@ -17,7 +18,8 @@ library.add(
|
||||||
faBookmarkReg,
|
faBookmarkReg,
|
||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
faThumbtack,
|
faThumbtack,
|
||||||
faShareAlt
|
faShareAlt,
|
||||||
|
faExternalLinkAlt
|
||||||
)
|
)
|
||||||
|
|
||||||
const ExtraButtons = {
|
const ExtraButtons = {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<Popover
|
<Popover
|
||||||
|
class="ExtraButtons"
|
||||||
trigger="click"
|
trigger="click"
|
||||||
placement="top"
|
placement="top"
|
||||||
:offset="{ y: 5 }"
|
:offset="{ y: 5 }"
|
||||||
|
@ -96,11 +97,23 @@
|
||||||
icon="share-alt"
|
icon="share-alt"
|
||||||
/><span>{{ $t("status.copy_link") }}</span>
|
/><span>{{ $t("status.copy_link") }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
<a
|
||||||
|
v-if="!status.is_local"
|
||||||
|
class="button-default dropdown-item dropdown-item-icon"
|
||||||
|
title="Source"
|
||||||
|
:href="status.external_url"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<FAIcon
|
||||||
|
fixed-width
|
||||||
|
icon="external-link-alt"
|
||||||
|
/><span>{{ $t("status.external_source") }}</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
slot="trigger"
|
slot="trigger"
|
||||||
class="ExtraButtons"
|
class="popover-trigger"
|
||||||
>
|
>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="fa-scale-110 fa-old-padding"
|
class="fa-scale-110 fa-old-padding"
|
||||||
|
@ -116,13 +129,15 @@
|
||||||
@import '../../_variables.scss';
|
@import '../../_variables.scss';
|
||||||
|
|
||||||
.ExtraButtons {
|
.ExtraButtons {
|
||||||
position: static;
|
.popover-trigger {
|
||||||
padding: 10px;
|
position: static;
|
||||||
margin: -10px;
|
padding: 10px;
|
||||||
|
margin: -10px;
|
||||||
|
|
||||||
&:hover .svg-inline--fa {
|
&:hover .svg-inline--fa {
|
||||||
color: $fallback--text;
|
color: $fallback--text;
|
||||||
color: var(--text, $fallback--text);
|
color: var(--text, $fallback--text);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -9,11 +9,15 @@
|
||||||
<div class="notice-message">
|
<div class="notice-message">
|
||||||
{{ $t(notice.messageKey, notice.messageArgs) }}
|
{{ $t(notice.messageKey, notice.messageArgs) }}
|
||||||
</div>
|
</div>
|
||||||
<FAIcon
|
<button
|
||||||
class="fa-scale-110 fa-old-padding"
|
class="button-unstyled close-notice"
|
||||||
icon="times"
|
|
||||||
@click="closeNotice(notice)"
|
@click="closeNotice(notice)"
|
||||||
/>
|
>
|
||||||
|
<FAIcon
|
||||||
|
class="fa-scale-110 fa-old-padding"
|
||||||
|
icon="times"
|
||||||
|
/>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -54,7 +58,7 @@
|
||||||
.global-error {
|
.global-error {
|
||||||
background-color: var(--alertPopupError, $fallback--cRed);
|
background-color: var(--alertPopupError, $fallback--cRed);
|
||||||
color: var(--alertPopupErrorText, $fallback--text);
|
color: var(--alertPopupErrorText, $fallback--text);
|
||||||
i {
|
.svg-inline--fa {
|
||||||
color: var(--alertPopupErrorText, $fallback--text);
|
color: var(--alertPopupErrorText, $fallback--text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +66,7 @@
|
||||||
.global-warning {
|
.global-warning {
|
||||||
background-color: var(--alertPopupWarning, $fallback--cOrange);
|
background-color: var(--alertPopupWarning, $fallback--cOrange);
|
||||||
color: var(--alertPopupWarningText, $fallback--text);
|
color: var(--alertPopupWarningText, $fallback--text);
|
||||||
i {
|
.svg-inline--fa {
|
||||||
color: var(--alertPopupWarningText, $fallback--text);
|
color: var(--alertPopupWarningText, $fallback--text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,9 +74,16 @@
|
||||||
.global-info {
|
.global-info {
|
||||||
background-color: var(--alertPopupNeutral, $fallback--fg);
|
background-color: var(--alertPopupNeutral, $fallback--fg);
|
||||||
color: var(--alertPopupNeutralText, $fallback--text);
|
color: var(--alertPopupNeutralText, $fallback--text);
|
||||||
i {
|
.svg-inline--fa {
|
||||||
color: var(--alertPopupNeutralText, $fallback--text);
|
color: var(--alertPopupNeutralText, $fallback--text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.close-notice {
|
||||||
|
padding-right: 0.2em;
|
||||||
|
.svg-inline--fa:hover {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -2,12 +2,10 @@ import Cropper from 'cropperjs'
|
||||||
import 'cropperjs/dist/cropper.css'
|
import 'cropperjs/dist/cropper.css'
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import {
|
import {
|
||||||
faTimes,
|
|
||||||
faCircleNotch
|
faCircleNotch
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
library.add(
|
library.add(
|
||||||
faTimes,
|
|
||||||
faCircleNotch
|
faCircleNotch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -53,8 +51,7 @@ const ImageCropper = {
|
||||||
cropper: undefined,
|
cropper: undefined,
|
||||||
dataUrl: undefined,
|
dataUrl: undefined,
|
||||||
filename: undefined,
|
filename: undefined,
|
||||||
submitting: false,
|
submitting: false
|
||||||
submitError: null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -66,9 +63,6 @@ const ImageCropper = {
|
||||||
},
|
},
|
||||||
cancelText () {
|
cancelText () {
|
||||||
return this.cancelButtonLabel || this.$t('image_cropper.cancel')
|
return this.cancelButtonLabel || this.$t('image_cropper.cancel')
|
||||||
},
|
|
||||||
submitErrorMsg () {
|
|
||||||
return this.submitError && this.submitError instanceof Error ? this.submitError.toString() : this.submitError
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -82,12 +76,8 @@ const ImageCropper = {
|
||||||
},
|
},
|
||||||
submit (cropping = true) {
|
submit (cropping = true) {
|
||||||
this.submitting = true
|
this.submitting = true
|
||||||
this.avatarUploadError = null
|
|
||||||
this.submitHandler(cropping && this.cropper, this.file)
|
this.submitHandler(cropping && this.cropper, this.file)
|
||||||
.then(() => this.destroy())
|
.then(() => this.destroy())
|
||||||
.catch((err) => {
|
|
||||||
this.submitError = err
|
|
||||||
})
|
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.submitting = false
|
this.submitting = false
|
||||||
})
|
})
|
||||||
|
@ -113,9 +103,6 @@ const ImageCropper = {
|
||||||
reader.readAsDataURL(this.file)
|
reader.readAsDataURL(this.file)
|
||||||
this.$emit('changed', this.file, reader)
|
this.$emit('changed', this.file, reader)
|
||||||
}
|
}
|
||||||
},
|
|
||||||
clearError () {
|
|
||||||
this.submitError = null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|
|
@ -37,17 +37,6 @@
|
||||||
icon="circle-notch"
|
icon="circle-notch"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
v-if="submitError"
|
|
||||||
class="alert error"
|
|
||||||
>
|
|
||||||
{{ submitErrorMsg }}
|
|
||||||
<FAIcon
|
|
||||||
class="fa-scale-110 fa-old-padding"
|
|
||||||
icon="times"
|
|
||||||
@click="clearError"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
ref="input"
|
ref="input"
|
||||||
|
|
|
@ -95,6 +95,7 @@
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
--btnText: var(--popoverText, $fallback--text);
|
--btnText: var(--popoverText, $fallback--text);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
click="submit"
|
click="submit"
|
||||||
class="remote-button"
|
class="button-default remote-button"
|
||||||
>
|
>
|
||||||
{{ $t('user_card.remote_follow') }}
|
{{ $t('user_card.remote_follow') }}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -45,9 +45,7 @@ const ProfileTab = {
|
||||||
banner: null,
|
banner: null,
|
||||||
bannerPreview: null,
|
bannerPreview: null,
|
||||||
background: null,
|
background: null,
|
||||||
backgroundPreview: null,
|
backgroundPreview: null
|
||||||
bannerUploadError: null,
|
|
||||||
backgroundUploadError: null
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
@ -162,18 +160,18 @@ const ProfileTab = {
|
||||||
if (file.size > this.$store.state.instance[slot + 'limit']) {
|
if (file.size > this.$store.state.instance[slot + 'limit']) {
|
||||||
const filesize = fileSizeFormatService.fileSizeFormat(file.size)
|
const filesize = fileSizeFormatService.fileSizeFormat(file.size)
|
||||||
const allowedsize = fileSizeFormatService.fileSizeFormat(this.$store.state.instance[slot + 'limit'])
|
const allowedsize = fileSizeFormatService.fileSizeFormat(this.$store.state.instance[slot + 'limit'])
|
||||||
this[slot + 'UploadError'] = [
|
this.$store.dispatch('pushGlobalNotice', {
|
||||||
this.$t('upload.error.base'),
|
messageKey: 'upload.error.message',
|
||||||
this.$t(
|
messageArgs: [
|
||||||
'upload.error.file_too_big',
|
this.$t('upload.error.file_too_big', {
|
||||||
{
|
|
||||||
filesize: filesize.num,
|
filesize: filesize.num,
|
||||||
filesizeunit: filesize.unit,
|
filesizeunit: filesize.unit,
|
||||||
allowedsize: allowedsize.num,
|
allowedsize: allowedsize.num,
|
||||||
allowedsizeunit: allowedsize.unit
|
allowedsizeunit: allowedsize.unit
|
||||||
}
|
})
|
||||||
)
|
],
|
||||||
].join(' ')
|
level: 'error'
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
|
@ -213,8 +211,9 @@ const ProfileTab = {
|
||||||
that.$store.commit('setCurrentUser', user)
|
that.$store.commit('setCurrentUser', user)
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((error) => {
|
||||||
reject(new Error(that.$t('upload.error.base') + ' ' + err.message))
|
that.displayUploadError(error)
|
||||||
|
reject(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,24 +234,27 @@ const ProfileTab = {
|
||||||
this.$store.commit('setCurrentUser', user)
|
this.$store.commit('setCurrentUser', user)
|
||||||
this.bannerPreview = null
|
this.bannerPreview = null
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch(this.displayUploadError)
|
||||||
this.bannerUploadError = this.$t('upload.error.base') + ' ' + err.message
|
.finally(() => { this.bannerUploading = false })
|
||||||
})
|
|
||||||
.then(() => { this.bannerUploading = false })
|
|
||||||
},
|
},
|
||||||
submitBackground (background) {
|
submitBackground (background) {
|
||||||
if (!this.backgroundPreview && background !== '') { return }
|
if (!this.backgroundPreview && background !== '') { return }
|
||||||
|
|
||||||
this.backgroundUploading = true
|
this.backgroundUploading = true
|
||||||
this.$store.state.api.backendInteractor.updateProfileImages({ background }).then((data) => {
|
this.$store.state.api.backendInteractor.updateProfileImages({ background })
|
||||||
if (!data.error) {
|
.then((data) => {
|
||||||
this.$store.commit('addNewUsers', [data])
|
this.$store.commit('addNewUsers', [data])
|
||||||
this.$store.commit('setCurrentUser', data)
|
this.$store.commit('setCurrentUser', data)
|
||||||
this.backgroundPreview = null
|
this.backgroundPreview = null
|
||||||
} else {
|
})
|
||||||
this.backgroundUploadError = this.$t('upload.error.base') + data.error
|
.catch(this.displayUploadError)
|
||||||
}
|
.finally(() => { this.backgroundUploading = false })
|
||||||
this.backgroundUploading = false
|
},
|
||||||
|
displayUploadError (error) {
|
||||||
|
this.$store.dispatch('pushGlobalNotice', {
|
||||||
|
messageKey: 'upload.error.message',
|
||||||
|
messageArgs: [error.message],
|
||||||
|
level: 'error'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,17 +229,6 @@
|
||||||
>
|
>
|
||||||
{{ $t('general.submit') }}
|
{{ $t('general.submit') }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
|
||||||
v-if="bannerUploadError"
|
|
||||||
class="alert error"
|
|
||||||
>
|
|
||||||
Error: {{ bannerUploadError }}
|
|
||||||
<FAIcon
|
|
||||||
class="fa-scale-110 fa-old-padding"
|
|
||||||
icon="times"
|
|
||||||
@click="clearUploadError('banner')"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-item">
|
<div class="setting-item">
|
||||||
<h2>{{ $t('settings.profile_background') }}</h2>
|
<h2>{{ $t('settings.profile_background') }}</h2>
|
||||||
|
@ -279,18 +268,6 @@
|
||||||
>
|
>
|
||||||
{{ $t('general.submit') }}
|
{{ $t('general.submit') }}
|
||||||
</button>
|
</button>
|
||||||
<div
|
|
||||||
v-if="backgroundUploadError"
|
|
||||||
class="alert error"
|
|
||||||
>
|
|
||||||
Error: {{ backgroundUploadError }}
|
|
||||||
<FAIcon
|
|
||||||
size="lg"
|
|
||||||
class="fa-scale-110 fa-old-padding"
|
|
||||||
icon="times"
|
|
||||||
@click="clearUploadError('background')"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -26,7 +26,6 @@ import {
|
||||||
faTimes,
|
faTimes,
|
||||||
faRetweet,
|
faRetweet,
|
||||||
faReply,
|
faReply,
|
||||||
faExternalLinkSquareAlt,
|
|
||||||
faPlusSquare,
|
faPlusSquare,
|
||||||
faSmileBeam,
|
faSmileBeam,
|
||||||
faEllipsisH,
|
faEllipsisH,
|
||||||
|
@ -44,7 +43,6 @@ library.add(
|
||||||
faTimes,
|
faTimes,
|
||||||
faRetweet,
|
faRetweet,
|
||||||
faReply,
|
faReply,
|
||||||
faExternalLinkSquareAlt,
|
|
||||||
faPlusSquare,
|
faPlusSquare,
|
||||||
faStar,
|
faStar,
|
||||||
faSmileBeam,
|
faSmileBeam,
|
||||||
|
|
|
@ -139,6 +139,20 @@ $status-margin: 0.75em;
|
||||||
.heading-right {
|
.heading-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
.button-unstyled {
|
||||||
|
padding: 5px;
|
||||||
|
margin: -5px;
|
||||||
|
|
||||||
|
&:hover svg {
|
||||||
|
color: $fallback--lightText;
|
||||||
|
color: var(--lightText, $fallback--lightText);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.svg-inline--fa {
|
||||||
|
margin-left: 0.25em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeago {
|
.timeago {
|
||||||
|
|
|
@ -184,30 +184,20 @@
|
||||||
:title="status.visibility | capitalize"
|
:title="status.visibility | capitalize"
|
||||||
>
|
>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="fa-scale-110 fa-old-padding"
|
fixed-width
|
||||||
|
class="fa-scale-110"
|
||||||
:icon="visibilityIcon(status.visibility)"
|
:icon="visibilityIcon(status.visibility)"
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<a
|
|
||||||
v-if="!status.is_local && !isPreview"
|
|
||||||
:href="status.external_url"
|
|
||||||
target="_blank"
|
|
||||||
class="source_url"
|
|
||||||
title="Source"
|
|
||||||
>
|
|
||||||
<FAIcon
|
|
||||||
class="fa-scale-110 fa-old-padding"
|
|
||||||
icon="external-link-square-alt"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
<button
|
<button
|
||||||
v-if="expandable && !isPreview"
|
v-if="expandable && !isPreview"
|
||||||
class="button-unstyled"
|
class="button-unstyled"
|
||||||
title="Expand"
|
:title="$t('status.expand')"
|
||||||
@click.prevent="toggleExpanded"
|
@click.prevent="toggleExpanded"
|
||||||
>
|
>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="fa-scale-110 fa-old-padding"
|
fixed-width
|
||||||
|
class="fa-scale-110"
|
||||||
icon="plus-square"
|
icon="plus-square"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
@ -217,8 +207,9 @@
|
||||||
@click.prevent="toggleMute"
|
@click.prevent="toggleMute"
|
||||||
>
|
>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
|
fixed-width
|
||||||
icon="eye-slash"
|
icon="eye-slash"
|
||||||
class="fa-scale-110 fa-old-padding"
|
class="fa-scale-110"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -662,6 +662,7 @@
|
||||||
"unmute_conversation": "Unmute conversation",
|
"unmute_conversation": "Unmute conversation",
|
||||||
"status_unavailable": "Status unavailable",
|
"status_unavailable": "Status unavailable",
|
||||||
"copy_link": "Copy link to status",
|
"copy_link": "Copy link to status",
|
||||||
|
"external_source": "External source",
|
||||||
"thread_muted": "Thread muted",
|
"thread_muted": "Thread muted",
|
||||||
"thread_muted_and_words": ", has words:",
|
"thread_muted_and_words": ", has words:",
|
||||||
"show_full_subject": "Show full subject",
|
"show_full_subject": "Show full subject",
|
||||||
|
@ -669,7 +670,8 @@
|
||||||
"show_content": "Show content",
|
"show_content": "Show content",
|
||||||
"hide_content": "Hide content",
|
"hide_content": "Hide content",
|
||||||
"status_deleted": "This post was deleted",
|
"status_deleted": "This post was deleted",
|
||||||
"nsfw": "NSFW"
|
"nsfw": "NSFW",
|
||||||
|
"expand": "Expand"
|
||||||
},
|
},
|
||||||
"user_card": {
|
"user_card": {
|
||||||
"approve": "Approve",
|
"approve": "Approve",
|
||||||
|
@ -759,6 +761,7 @@
|
||||||
"upload": {
|
"upload": {
|
||||||
"error": {
|
"error": {
|
||||||
"base": "Upload failed.",
|
"base": "Upload failed.",
|
||||||
|
"message": "Upload failed: {0}",
|
||||||
"file_too_big": "File too big [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",
|
"file_too_big": "File too big [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",
|
||||||
"default": "Try again later"
|
"default": "Try again later"
|
||||||
},
|
},
|
||||||
|
|
|
@ -162,7 +162,12 @@ const updateProfileImages = ({ credentials, avatar = null, banner = null, backgr
|
||||||
body: form
|
body: form
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.then((data) => parseUser(data))
|
.then((data) => {
|
||||||
|
if (data.error) {
|
||||||
|
throw new Error(data.error)
|
||||||
|
}
|
||||||
|
return parseUser(data)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateProfile = ({ credentials, params }) => {
|
const updateProfile = ({ credentials, params }) => {
|
||||||
|
|
Loading…
Reference in a new issue