|
@@ -8,7 +8,7 @@ import {
|
|
|
Modal, ModalHeader, ModalBody,
|
|
Modal, ModalHeader, ModalBody,
|
|
|
} from 'reactstrap';
|
|
} from 'reactstrap';
|
|
|
|
|
|
|
|
-import { toastError } from '~/client/util/apiNotification';
|
|
|
|
|
|
|
+import { toastError, toastSuccess } from '~/client/util/apiNotification';
|
|
|
import { useDefaultIndentSize } from '~/stores/context';
|
|
import { useDefaultIndentSize } from '~/stores/context';
|
|
|
import { useEditorSettings } from '~/stores/editor';
|
|
import { useEditorSettings } from '~/stores/editor';
|
|
|
import { useIsMobile } from '~/stores/ui';
|
|
import { useIsMobile } from '~/stores/ui';
|
|
@@ -141,7 +141,7 @@ const Editor = React.forwardRef((props: EditorPropsType, ref): JSX.Element => {
|
|
|
const pasteFilesHandler = useCallback((event) => {
|
|
const pasteFilesHandler = useCallback((event) => {
|
|
|
const items = event.clipboardData.items || event.clipboardData.files || [];
|
|
const items = event.clipboardData.items || event.clipboardData.files || [];
|
|
|
|
|
|
|
|
- toastError(t('toaster.file_upload_failed'));
|
|
|
|
|
|
|
+ toastSuccess(t('toaster.file_upload_succeeded'));
|
|
|
|
|
|
|
|
// abort if length is not 1
|
|
// abort if length is not 1
|
|
|
if (items.length < 1) {
|
|
if (items.length < 1) {
|