mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
fix: Eroneous toast on export
This commit is contained in:
1 parent
d593976b4d
commit
ed447f5811
1 file changed
+2
-1
@@ -6,7 +6,7 @@ import * as React from "react";
|
||||
import { withTranslation, WithTranslation } from "react-i18next";
|
||||
import { io, Socket } from "socket.io-client";
|
||||
import { toast } from "sonner";
|
||||
import { FileOperationState } from "@shared/types";
|
||||
import { FileOperationState, FileOperationType } from "@shared/types";
|
||||
import RootStore from "~/stores/RootStore";
|
||||
import Collection from "~/models/Collection";
|
||||
import Comment from "~/models/Comment";
|
||||
@@ -436,6 +436,7 @@ class WebsocketProvider extends React.Component<Props> {
|
||||
|
||||
if (
|
||||
event.state === FileOperationState.Complete &&
|
||||
event.type === FileOperationType.Import &&
|
||||
event.user?.id === auth.user?.id
|
||||
) {
|
||||
toast.success(event.name, {
|
||||
|
||||
Reference in new issue
Block a user