mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 12:18:30 +03:00
Apply suggested changes to alert strings
Co-authored-by: Scott Feeney <scott@oceanbase.org> Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
This commit is contained in:
parent
78036d08a5
commit
8df2f55f5b
1 changed files with 2 additions and 2 deletions
|
@ -605,11 +605,11 @@ function Compose({
|
|||
if (item.kind === 'file') {
|
||||
const file = item.getAsFile();
|
||||
if (!file) {
|
||||
alert(`Could not access the given attachment.`);
|
||||
alert(t`Unable to attach file.`);
|
||||
return;
|
||||
}
|
||||
else if (supportedMimeTypes !== undefined && !supportedMimeTypes.includes(file.type)) {
|
||||
alert(`Your instance does not allow attachments of type "${file.type}".`);
|
||||
alert(t`File "${file.name}" is not supported by your instance.`);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue