mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(app): point self-hosted users at their instance admins (#2921)
This commit is contained in:
1 parent
ea9f83a443
commit
f2785941aa
41 files changed
+5023
-4010
No files matched your search
+22
-12
@@ -3,6 +3,7 @@
|
||||
import {GenericErrorModal} from '@app/features/app/components/alerts/GenericErrorModal';
|
||||
import {ExternalLink} from '@app/features/app/components/shared/ExternalLink';
|
||||
import {PRODUCT_NAME, SUPPORT_EMAIL, SUPPORT_EMAIL_MAILTO} from '@app/features/app/config/I18nDisplayConstants';
|
||||
import RuntimeConfig from '@app/features/app/state/RuntimeConfig';
|
||||
import {MULTIPART_ATTACHMENT_FALLBACK_MAX_REQUEST_SIZE} from '@app/features/messaging/utils/AttachmentUploadFallbackUtils';
|
||||
import {formatFileSize} from '@app/features/messaging/utils/FileUtils';
|
||||
import {msg} from '@lingui/core/macro';
|
||||
@@ -20,18 +21,27 @@ export const AttachmentUploadConnectivityModal = observer(() => {
|
||||
<GenericErrorModal
|
||||
title={i18n._(ATTACHMENT_UPLOAD_UNAVAILABLE_DESCRIPTOR)}
|
||||
message={
|
||||
<Trans>
|
||||
We couldn't reach the attachment upload service. {PRODUCT_NAME} can fall back to the standard upload path for
|
||||
messages up to {fallbackSizeFormatted} total, but these attachments exceed that combined limit and can't be
|
||||
sent until connectivity is restored. Try again later or contact{' '}
|
||||
<ExternalLink
|
||||
href={SUPPORT_EMAIL_MAILTO}
|
||||
data-flx="messaging.attachment-upload-connectivity-modal.external-link"
|
||||
>
|
||||
{SUPPORT_EMAIL}
|
||||
</ExternalLink>{' '}
|
||||
if this keeps happening.
|
||||
</Trans>
|
||||
RuntimeConfig.isSelfHosted() ? (
|
||||
<Trans>
|
||||
We couldn't reach the attachment upload service. {PRODUCT_NAME} can fall back to the standard upload path
|
||||
for messages up to {fallbackSizeFormatted} total, but these attachments exceed that combined limit and can't
|
||||
be sent until connectivity is restored. Try again later or contact the administrators of this instance if
|
||||
this keeps happening.
|
||||
</Trans>
|
||||
) : (
|
||||
<Trans>
|
||||
We couldn't reach the attachment upload service. {PRODUCT_NAME} can fall back to the standard upload path
|
||||
for messages up to {fallbackSizeFormatted} total, but these attachments exceed that combined limit and can't
|
||||
be sent until connectivity is restored. Try again later or contact{' '}
|
||||
<ExternalLink
|
||||
href={SUPPORT_EMAIL_MAILTO}
|
||||
data-flx="messaging.attachment-upload-connectivity-modal.external-link"
|
||||
>
|
||||
{SUPPORT_EMAIL}
|
||||
</ExternalLink>{' '}
|
||||
if this keeps happening.
|
||||
</Trans>
|
||||
)
|
||||
}
|
||||
data-flx="messaging.attachment-upload-connectivity-modal.confirm-modal"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user