Avoid browser warning about leaving page, handle delete image fail and add user filenames to messages.
This commit is contained in:
parent
53e973c140
commit
f2a4ebd92a
2 changed files with 14 additions and 5 deletions
|
@ -367,8 +367,9 @@ export class MarkdownTextArea extends Component<
|
|||
let textarea: any = document.getElementById(i.id);
|
||||
autosize.update(textarea);
|
||||
pictrsDeleteToast(
|
||||
i18n.t("click_to_delete_picture"),
|
||||
i18n.t("picture_deleted"),
|
||||
i18n.t("click_to_delete_picture").concat('\n(', file.name,')'),
|
||||
i18n.t("picture_deleted").concat('\n(', file.name,')'),
|
||||
i18n.t("fail_picture_deleted").concat('\n(', file.name,')'),
|
||||
deleteUrl
|
||||
);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue